aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-14 23:01:28 +0000
committerRoy Marples <roy@marples.name>2007-12-14 23:01:28 +0000
commitd2e3fcae3c8df601206970c3787f4bf1581e1025 (patch)
tree05c59eb7b5ae3213fa3735565a6af0cd95491bdf /src
parent10edca8e0e16c3a5e927e80c4cfd1a06c0b76e76 (diff)
Our tools should not inherit EINFO_QUIET from the curret environmet, Gentoo bug #201352
Diffstat (limited to 'src')
-rw-r--r--src/fstabinfo.c3
-rw-r--r--src/mountinfo.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/fstabinfo.c b/src/fstabinfo.c
index a6ffe966..08c2b0b9 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 3e471e49..a55bf4fd 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);