projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd898c9
)
Make "hd" independently selectable
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 23 Nov 2016 10:53:12 +0000
(11:53 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 23 Nov 2016 10:53:12 +0000
(11:53 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/hexdump.c
patch
|
blob
|
history
diff --git
a/util-linux/hexdump.c
b/util-linux/hexdump.c
index 5e1ef69383fd19b3551cb324e90c7bb0a9c75d51..4a7f641db06e8148beb8f87b581714efc9546c13 100644
(file)
--- 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;
}