diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:43:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:43:37 +0000 |
commit | 99912ca733dd960f5589227fd999c86e73c8e894 (patch) | |
tree | 9df947fc08884d498cf76a02204d74b121064134 /util-linux/hexdump.c | |
parent | ff131b980d524a33d8a43cefe65e14f64a43f2da (diff) | |
download | busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.gz busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.bz2 busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.zip |
audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places.
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r-- | util-linux/hexdump.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index cddd185e2..85a449038 100644 --- a/util-linux/hexdump.c +++ b/util-linux/hexdump.c | |||
@@ -9,10 +9,13 @@ | |||
9 | * Licensed under GPLv2 or later, see file License in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file License in this tarball for details. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "busybox.h" | ||
13 | #include <getopt.h> | 12 | #include <getopt.h> |
13 | #include "busybox.h" | ||
14 | #include "dump.h" | 14 | #include "dump.h" |
15 | 15 | ||
16 | /* This is a NOEXEC applet. Be very careful! */ | ||
17 | |||
18 | |||
16 | static void bb_dump_addfile(char *name) | 19 | static void bb_dump_addfile(char *name) |
17 | { | 20 | { |
18 | char *p; | 21 | char *p; |
@@ -45,10 +48,10 @@ static const char add_first[] = "\"%07.7_Ax\n\""; | |||
45 | static const char hexdump_opts[] = "bcdoxCe:f:n:s:v"; | 48 | static const char hexdump_opts[] = "bcdoxCe:f:n:s:v"; |
46 | 49 | ||
47 | static const struct suffix_mult suffixes[] = { | 50 | static const struct suffix_mult suffixes[] = { |
48 | {"b", 512 }, | 51 | { "b", 512 }, |
49 | {"k", 1024 }, | 52 | { "k", 1024 }, |
50 | {"m", 1024*1024 }, | 53 | { "m", 1024*1024 }, |
51 | {NULL, 0 } | 54 | { NULL, 0 } |
52 | }; | 55 | }; |
53 | 56 | ||
54 | int hexdump_main(int argc, char **argv); | 57 | int hexdump_main(int argc, char **argv); |