summaryrefslogtreecommitdiff
path: root/util-linux/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/flock.c')
-rw-r--r--util-linux/flock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c
index 0c91585..dd0bfd4 100644
--- a/util-linux/flock.c
+++ b/util-linux/flock.c
@@ -45,9 +45,8 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
"nonblock\0" No_argument "n"
;
#endif
- opt_complementary = "-1";
- opt = getopt32long(argv, "+sxnu", flock_longopts);
+ opt = getopt32long(argv, "^+" "sxnu" "\0" "-1", flock_longopts);
argv += optind;
if (argv[1]) {