aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r--util-linux/mkswap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index e44e13c0d..71449882d 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -119,9 +119,8 @@ int mkswap_main(int argc UNUSED_PARAM, char **argv)
119 119
120 INIT_G(); 120 INIT_G();
121 121
122 opt_complementary = "-1"; /* at least one param */
123 /* TODO: -p PAGESZ, -U UUID */ 122 /* TODO: -p PAGESZ, -U UUID */
124 getopt32(argv, "L:", &label); 123 getopt32(argv, "^" "L:" "\0" "-1"/*at least one arg*/, &label);
125 argv += optind; 124 argv += optind;
126 125
127 fd = xopen(argv[0], O_WRONLY); 126 fd = xopen(argv[0], O_WRONLY);