From d0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Thu, 23 Jan 2014 13:03:45 +0100 Subject: 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 Signed-off-by: Karel Zak --- fdisks/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fdisks/fdisk.c') diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index 7afd6420b..a5c1fe634 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -397,7 +397,7 @@ enum { int main(int argc, char **argv) { int i, c, act = ACT_FDISK; - int colormode = UL_COLORMODE_AUTO; + int colormode = UL_COLORMODE_UNDEF; struct fdisk_context *cxt; setlocale(LC_ALL, ""); @@ -500,7 +500,7 @@ int main(int argc, char **argv) warnx(_("The device properties (sector size and geometry) should" " be used with one specified device only.")); - colors_init(colormode); + colors_init(colormode, "fdisk"); switch (act) { case ACT_LIST: -- cgit v1.2.3-55-g7522