summaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-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 e5d1d3f..eaace13 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) {