]> git.ipfire.org Git - thirdparty/shadow.git/commit
open with O_CREAT when lock path does not exist
authored neville <ed@s5h.net>
Sat, 6 May 2023 09:05:47 +0000 (10:05 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 8 May 2023 13:16:11 +0000 (08:16 -0500)
commit0bce9c9808e6932b63a50caf537eaa528d7ed73c
tree8c897eadf8520565f6d03374e06fd7c23db67d9c
parent627631bf9a403d39663a3c33a8e4b13147996639
open with O_CREAT when lock path does not exist

Reported in #686, by wyj611 when trying to lock a file that is not
present

Lock method should be F_SETLKW rather than open file descriptor
lib/commonio.c