aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dumpleases.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dumpleases.c')
-rw-r--r--networking/udhcp/dumpleases.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index dce9084b3..70d2d1434 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5//applet:IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP)) 5//applet:IF_DUMPLEASES(APPLET_NOEXEC(dumpleases, dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP, dumpleases))
6 6
7//kbuild:lib-$(CONFIG_DUMPLEASES) += dumpleases.o 7//kbuild:lib-$(CONFIG_DUMPLEASES) += dumpleases.o
8 8
@@ -51,12 +51,15 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv)
51 "decimal\0" No_argument "d" 51 "decimal\0" No_argument "d"
52 ; 52 ;
53 53
54 applet_long_options = dumpleases_longopts;
55#endif 54#endif
56 init_unicode(); 55 init_unicode();
57 56
58 opt_complementary = "=0:a--r:r--a"; 57 opt = getopt32long(argv, "^"
59 opt = getopt32(argv, "arf:d", &file); 58 "arf:d"
59 "\0" "=0:a--r:r--a",
60 dumpleases_longopts,
61 &file
62 );
60 63
61 fd = xopen(file, O_RDONLY); 64 fd = xopen(file, O_RDONLY);
62 65