summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorOndrej Oprala2014-01-23 13:03:45 +0100
committerKarel Zak2014-03-11 09:38:09 +0100
commitd0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c (patch)
treee3022408c0a770a666be7ff829e3f9291883cf59 /text-utils/hexdump.c
parenttests: check commands needed for running a test exist (diff)
downloadkernel-qcow2-util-linux-d0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c.tar.gz
kernel-qcow2-util-linux-d0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c.tar.xz
kernel-qcow2-util-linux-d0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c.zip
lib/colors: check for /etc/terminal-colors.d/[util].disable
[kzak@redhat.com: - move paths to pathnames.h, - use static path buffer] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index 19e67f46d..ec9fecbec 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -60,7 +60,7 @@ int
parse_args(int argc, char **argv, struct hexdump *hex)
{
int ch;
- int colormode = UL_COLORMODE_NEVER;
+ int colormode = UL_COLORMODE_UNDEF;
char *hex_offt = "\"%07.7_Ax\n\"";
@@ -145,7 +145,7 @@ parse_args(int argc, char **argv, struct hexdump *hex)
add_fmt(hex_offt, hex);
add_fmt("\"%07.7_ax \" 8/2 \"%04x \" \"\\n\"", hex);
}
- colors_init (colormode);
+ colors_init (colormode, "hexdump");
return optind;
}