aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-08-18 23:21:40 +0200
committerChristian Ruppert <idl0r@gentoo.org>2012-08-18 23:21:40 +0200
commit8dc06e325943de7f3e04ddfe42da9143db7046cd (patch)
tree65f3fd5573f20f32f0c504c00f74523e9614192e
parentaa7e2cd1fe88b5d24f272764b2005681ea1ebebd (diff)
Fix quiet usage
EINFO_QUIET will always been unset when we first do unsetenv("EINFO_QUIET") and later query it again anyway..
-rw-r--r--src/rc/mountinfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
index e5d1d3f2..eaace13f 100644
--- a/src/rc/mountinfo.c
+++ b/src/rc/mountinfo.c
@@ -393,8 +393,7 @@ mountinfo(int argc, char **argv)
bool quiet;
char *this_path;
- /* Ensure that we are only quiet when explicitly told to be */
- unsetenv("EINFO_QUIET");
+ quiet = rc_yesno(getenv("EINFO_QUIET"));
#define DO_REG(_var) \
if (_var) free(_var); \
@@ -475,7 +474,6 @@ mountinfo(int argc, char **argv)
REG_FREE(args.skip_options_regex);
result = EXIT_FAILURE;
- quiet = rc_yesno(getenv("EINFO_QUIET"));
/* We should report the mounts in reverse order to ease unmounting */
TAILQ_FOREACH_REVERSE(s, nodes, rc_stringlist, entries) {