From: Denys Vlasenko Date: Wed, 23 Nov 2016 10:53:12 +0000 (+0100) Subject: Make "hd" independently selectable X-Git-Tag: 1_26_0~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b966c6180c139fba6846d632fd9bc0c34a8e1bc;p=oweals%2Fbusybox.git Make "hd" independently selectable Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index 5e1ef6938..4a7f641db 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; }