If multiple modes are supplied to flock(1), the last one wins

This commit is contained in:
sin 2015-10-07 10:26:04 +01:00
parent 9a176e4011
commit acca463813

View File

@ -31,7 +31,7 @@ main(int argc, char *argv[])
flags = LOCK_UN;
break;
case 'x':
/* for compat */
flags = LOCK_EX;
break;
default:
usage();