aboutsummaryrefslogtreecommitdiff
path: root/util-linux/losetup.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/losetup.c')
-rw-r--r--util-linux/losetup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index c608de6cc..6b171d710 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -15,9 +15,9 @@
15//config: file or block device, and to query the status of a loop device. This 15//config: file or block device, and to query the status of a loop device. This
16//config: version does not currently support enabling data encryption. 16//config: version does not currently support enabling data encryption.
17 17
18//kbuild:lib-$(CONFIG_LOSETUP) += losetup.o 18//applet:IF_LOSETUP(APPLET_NOEXEC(losetup, losetup, BB_DIR_SBIN, BB_SUID_DROP, losetup))
19 19
20//applet:IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP)) 20//kbuild:lib-$(CONFIG_LOSETUP) += losetup.o
21 21
22//usage:#define losetup_trivial_usage 22//usage:#define losetup_trivial_usage
23//usage: "[-r] [-o OFS] {-f|LOOPDEV} FILE - associate loop devices\n" 23//usage: "[-r] [-o OFS] {-f|LOOPDEV} FILE - associate loop devices\n"
@@ -57,8 +57,7 @@ int losetup_main(int argc UNUSED_PARAM, char **argv)
57 OPT_r = (1 << 4), /* must be last */ 57 OPT_r = (1 << 4), /* must be last */
58 }; 58 };
59 59
60 opt_complementary = "?2:d--ofar:a--ofr"; 60 opt = getopt32(argv, "^" "do:far" "\0" "?2:d--ofar:a--ofr", &opt_o);
61 opt = getopt32(argv, "do:far", &opt_o);
62 argv += optind; 61 argv += optind;
63 62
64 /* LOOPDEV */ 63 /* LOOPDEV */