mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
oops - lock test was the wrong way around
(This used to be commit 783d4b3477
)
This commit is contained in:
parent
84ba7b422d
commit
637414904d
@ -56,7 +56,7 @@ pid_t pidfile_pid(char *name)
|
||||
goto ok;
|
||||
}
|
||||
|
||||
if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)==False) {
|
||||
if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)) {
|
||||
/* we could get the lock - it can't be a Samba process */
|
||||
goto ok;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user