Our tools should not inherit EINFO_QUIET from the curret environmet, Gentoo bug #201352

This commit is contained in:
Roy Marples 2007-12-14 23:01:28 +00:00
parent 10edca8e0e
commit d2e3fcae3c
2 changed files with 6 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);