summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorSami Kerola2010-12-12 23:43:57 +0100
committerKarel Zak2010-12-30 23:11:43 +0100
commit604eb2602c9ade859713fc071526da04bef1878f (patch)
tree589452c79929c96cb3f4ced82799fbf155985615 /text-utils/hexdump.c
parentlibblkid: fix endian conversion bug in NILFS (diff)
downloadkernel-qcow2-util-linux-604eb2602c9ade859713fc071526da04bef1878f.tar.gz
kernel-qcow2-util-linux-604eb2602c9ade859713fc071526da04bef1878f.tar.xz
kernel-qcow2-util-linux-604eb2602c9ade859713fc071526da04bef1878f.zip
hexdump: remove od functionality in favor to GNU coreutils od
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index 68bb76ec5..6132bf115 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -55,10 +55,13 @@ int main(int argc, char **argv)
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od"))
+ if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od")) {
newsyntax(argc, &argv);
- else
- oldsyntax(argc, &argv);
+ } else {
+ fprintf(stderr,
+ _("Calling hexdump as od has been deprecated in favour to GNU coreutils od.\n"));
+ return(1);
+ }
/* figure out the data block size */
for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) {