aboutsummaryrefslogtreecommitdiff
path: root/coreutils/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/truncate.c')
-rw-r--r--coreutils/truncate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/truncate.c b/coreutils/truncate.c
index f67abaf40..f693570aa 100644
--- a/coreutils/truncate.c
+++ b/coreutils/truncate.c
@@ -50,8 +50,7 @@ int truncate_main(int argc UNUSED_PARAM, char **argv)
OPT_SIZE = (1 << 1),
};
- opt_complementary = "s:-1";
- opts = getopt32(argv, "cs:", &size_str);
+ opts = getopt32(argv, "^" "cs:" "\0" "s:-1", &size_str);
if (!(opts & OPT_NOCREATE))
flags |= O_CREAT;