diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2012-08-18 23:21:40 +0200 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2012-08-18 23:21:40 +0200 |
commit | 8dc06e325943de7f3e04ddfe42da9143db7046cd (patch) | |
tree | 65f3fd5573f20f32f0c504c00f74523e9614192e /src | |
parent | aa7e2cd1fe88b5d24f272764b2005681ea1ebebd (diff) |
Fix quiet usage
EINFO_QUIET will always been unset when we first do unsetenv("EINFO_QUIET") and
later query it again anyway..
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/mountinfo.c | 4 |
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) { |