From d2e3fcae3c8df601206970c3787f4bf1581e1025 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 14 Dec 2007 23:01:28 +0000 Subject: Our tools should not inherit EINFO_QUIET from the curret environmet, Gentoo bug #201352 --- src/fstabinfo.c | 3 +++ src/mountinfo.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/fstabinfo.c b/src/fstabinfo.c index a6ffe96..08c2b0b 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -129,6 +129,9 @@ int fstabinfo (int argc, char **argv) char *file; bool filtered = false; + /* Ensure that we are only quiet when explicitly told to be */ + unsetenv ("EINFO_QUIET"); + while ((opt = getopt_long (argc, argv, getoptstring, longopts, (int *) 0)) != -1) { diff --git a/src/mountinfo.c b/src/mountinfo.c index 3e471e4..a55bf4f 100644 --- a/src/mountinfo.c +++ b/src/mountinfo.c @@ -366,6 +366,9 @@ int mountinfo (int argc, char **argv) int result; bool quiet; + /* Ensure that we are only quiet when explicitly told to be */ + unsetenv ("EINFO_QUIET"); + #define DO_REG(_var) \ if (_var) free (_var); \ _var = get_regex (optarg); -- cgit v1.2.3