Skip to content

Commit f28b77c

Browse files
committed
Fixes flock(fd, LOCK_UN) emulation on Solaris.
Follow up fix for #11421.
1 parent 4a8d17e commit f28b77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/flock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ mod sys {
406406
l_pad: [0, 0, 0, 0],
407407
};
408408
flock.l_type = if flag & libc::LOCK_UN != 0 {
409-
libc::F_RDLCK
409+
libc::F_UNLCK
410410
} else if flag & libc::LOCK_EX != 0 {
411411
libc::F_WRLCK
412412
} else if flag & libc::LOCK_SH != 0 {

0 commit comments

Comments
 (0)