diff options
| author | Eli Zaretskii | 2024-05-05 19:30:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-05 19:30:57 +0300 |
| commit | d5b6627faa9bbd0059600a91d1cd45c0b31e3cd8 (patch) | |
| tree | f9b6c7a18ec3586249f1921bded24c7d0d56016a /src | |
| parent | 61ad641893bc521e98cc06162634299d57b2bf8a (diff) | |
| download | emacs-d5b6627faa9bbd0059600a91d1cd45c0b31e3cd8.tar.gz emacs-d5b6627faa9bbd0059600a91d1cd45c0b31e3cd8.zip | |
Fix lock files on some versions of Cygwin
* src/filelock.c (current_lock_owner): Support negative boot-time
on rare systems. (Bug#70415)
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c index 01d35c46726..e5b352cb6ff 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -419,7 +419,9 @@ current_lock_owner (lock_info_type *owner, Lisp_Object lfname) | |||
| 419 | boot += 2; | 419 | boot += 2; |
| 420 | FALLTHROUGH; | 420 | FALLTHROUGH; |
| 421 | case ':': | 421 | case ':': |
| 422 | if (! c_isdigit (boot[0])) | 422 | if (!(c_isdigit (boot[0]) |
| 423 | /* A negative number. */ | ||
| 424 | || (boot[0] == '-' && c_isdigit (boot[1])))) | ||
| 423 | return EINVAL; | 425 | return EINVAL; |
| 424 | boot_time = strtoimax (boot, &lfinfo_end, 10); | 426 | boot_time = strtoimax (boot, &lfinfo_end, 10); |
| 425 | break; | 427 | break; |