summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.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 /fdisks/fdisk.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 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c4
1 files changed, 2 insertions, 2 deletions
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: