Skip to content

Commit 0409e39

Browse files
committed
Auto merge of #11474 - psumbera:master, r=ehuss
Fixes flock(fd, LOCK_UN) emulation on Solaris. Follow up fix for #11421.
2 parents 4a8d17e + f28b77c commit 0409e39

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)