summaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-23 11:53:12 +0100
committerDenys Vlasenko2016-11-23 11:53:12 +0100
commit5b966c6180c139fba6846d632fd9bc0c34a8e1bc (patch)
treeaee630dbc5b21f785be5563545c0e61595a7bacd /util-linux/hexdump.c
parentdd898c9f3388fca1d7339a45150fbb7406de0971 (diff)
downloadbusybox-5b966c6180c139fba6846d632fd9bc0c34a8e1bc.zip
busybox-5b966c6180c139fba6846d632fd9bc0c34a8e1bc.tar.gz
Make "hd" independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r--util-linux/hexdump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 5e1ef69..4a7f641 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -28,7 +28,6 @@
//config:config HD
//config: bool "hd"
//config: default y
-//config: depends on HEXDUMP
//config: help
//config: hd is an alias to hexdump -C.
@@ -106,7 +105,9 @@ int hexdump_main(int argc, char **argv)
smallint rdump = 0;
#endif
- if (ENABLE_HD && !applet_name[2]) { /* we are "hd" */
+ if (ENABLE_HD
+ && (!ENABLE_HEXDUMP || !applet_name[2])
+ ) { /* we are "hd" */
ch = 'C';
goto hd_applet;
}