Fix file lock issue (Bug#46397)
* src/filelock.c (current_lock_owner): Also treat ENOTDIR as meaning the lock file does not exist.
This commit is contained in:
parent
21e475ea0c
commit
4459dcc078
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ current_lock_owner (lock_info_type *owner, char *lfname)
|
|||
/* If nonexistent lock file, all is well; otherwise, got strange error. */
|
||||
lfinfolen = read_lock_data (lfname, owner->user);
|
||||
if (lfinfolen < 0)
|
||||
return errno == ENOENT ? 0 : errno;
|
||||
return errno == ENOENT || errno == ENOTDIR ? 0 : errno;
|
||||
if (MAX_LFINFO < lfinfolen)
|
||||
return ENAMETOOLONG;
|
||||
owner->user[lfinfolen] = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue