Fixed a bug where we incorrectly pass a lock struct to fcntl

for file locking instead of a pointer.
This commit is contained in:
Dana Robinson 2019-08-27 07:03:51 -07:00
parent 6e8c48182f
commit d42de626b6

View File

@ -631,7 +631,7 @@ Pflock(int fd, int operation) {
flk.l_pid = 0; /* not used with set */
/* Lock or unlock */
if(HDfcntl(fd, F_SETLK, flk) < 0)
if(HDfcntl(fd, F_SETLK, &flk) < 0)
return -1;
return 0;