Skip to content

Commit

Permalink
Fixes flock(fd, LOCK_UN) emulation on Solaris.
Browse files Browse the repository at this point in the history
Follow up fix for #11421.
  • Loading branch information
psumbera committed Dec 12, 2022
1 parent 4a8d17e commit f28b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/util/flock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ mod sys {
l_pad: [0, 0, 0, 0],
};
flock.l_type = if flag & libc::LOCK_UN != 0 {
libc::F_RDLCK
libc::F_UNLCK
} else if flag & libc::LOCK_EX != 0 {
libc::F_WRLCK
} else if flag & libc::LOCK_SH != 0 {
Expand Down

0 comments on commit f28b77c

Please sign in to comment.