Fix lock files on some versions of Cygwin
* src/filelock.c (current_lock_owner): Support negative boot-time on rare systems. (Bug#70415)
This commit is contained in:
parent
61ad641893
commit
d5b6627faa
1 changed files with 3 additions and 1 deletions
|
@ -419,7 +419,9 @@ current_lock_owner (lock_info_type *owner, Lisp_Object lfname)
|
|||
boot += 2;
|
||||
FALLTHROUGH;
|
||||
case ':':
|
||||
if (! c_isdigit (boot[0]))
|
||||
if (!(c_isdigit (boot[0])
|
||||
/* A negative number. */
|
||||
|| (boot[0] == '-' && c_isdigit (boot[1]))))
|
||||
return EINVAL;
|
||||
boot_time = strtoimax (boot, &lfinfo_end, 10);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue