[PATCH 03/23] hexdump: remove deprecation message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Message 'calling hexdump as od has been deprecated in favor of GNU
coreutils od' has informed the hexdump not to be used like that for three
and half years, and five releases.  It is time to get rid of notice.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 text-utils/hexdump.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index 50b593e..afae334 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -179,7 +179,6 @@ int main(int argc, char **argv)
 	struct list_head *p;
 	struct hexdump_fs *tfs;
 	int ret;
-	char *c;
 
 	struct hexdump *hex = xcalloc(1, sizeof (struct hexdump));
 	hex->length = -1;
@@ -190,11 +189,7 @@ int main(int argc, char **argv)
 	textdomain(PACKAGE);
 	atexit(close_stdout);
 
-	if (!(c = strrchr(argv[0], 'o')) || strcmp(c, "od")) {
-		argv += parse_args(argc, argv, hex);
-	} else
-		errx(EXIT_FAILURE, _("calling hexdump as od has been deprecated "
-				     "in favor of GNU coreutils od"));
+	argv += parse_args(argc, argv, hex);
 
 	/* figure out the data block size */
 	hex->blocksize = 0;
-- 
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux