From 5b966c6180c139fba6846d632fd9bc0c34a8e1bc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 23 Nov 2016 11:53:12 +0100 Subject: [PATCH] Make "hd" independently selectable Signed-off-by: Denys Vlasenko --- util-linux/hexdump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.25.1