If multiple modes are supplied to flock(1), the last one wins
This commit is contained in:
parent
9a176e4011
commit
acca463813
2
flock.c
2
flock.c
@ -31,7 +31,7 @@ main(int argc, char *argv[])
|
||||
flags = LOCK_UN;
|
||||
break;
|
||||
case 'x':
|
||||
/* for compat */
|
||||
flags = LOCK_EX;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user