summaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-10 15:43:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-10 15:43:37 +0000
commit99912ca733dd960f5589227fd999c86e73c8e894 (patch)
tree9df947fc08884d498cf76a02204d74b121064134 /util-linux/hexdump.c
parentff131b980d524a33d8a43cefe65e14f64a43f2da (diff)
downloadbusybox-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.c13
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
16static void bb_dump_addfile(char *name) 19static 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\"";
45static const char hexdump_opts[] = "bcdoxCe:f:n:s:v"; 48static const char hexdump_opts[] = "bcdoxCe:f:n:s:v";
46 49
47static const struct suffix_mult suffixes[] = { 50static 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
54int hexdump_main(int argc, char **argv); 57int hexdump_main(int argc, char **argv);