aboutsummaryrefslogtreecommitdiff
path: root/coreutils/truncate.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /coreutils/truncate.c
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip
Merge branch 'busybox' into merge
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)
50 OPT_SIZE = (1 << 1), 50 OPT_SIZE = (1 << 1),
51 }; 51 };
52 52
53 opt_complementary = "s:-1"; 53 opts = getopt32(argv, "^" "cs:" "\0" "s:-1", &size_str);
54 opts = getopt32(argv, "cs:", &size_str);
55 54
56 if (!(opts & OPT_NOCREATE)) 55 if (!(opts & OPT_NOCREATE))
57 flags |= O_CREAT; 56 flags |= O_CREAT;