aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-19 16:27:37 +0000
committerRoy Marples <roy@marples.name>2007-09-19 16:27:37 +0000
commitb6aa1c857c9cf4c2d54681875761fa5107433771 (patch)
treed724295dfa34b42404090d484c60c3a6109ebf7d /src/mountinfo.c
parenta74dd430d5c513f1e4d8ed13d7865eb24ccc5494 (diff)
Added the checkown applet based on the work by Renato Caldas, #192682
checkdir ensures that the specified files (or directories) are owned by the current user/group or as specified on the command line. You can optionally check permissions too.
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index 7ee663ae..6ed257a5 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -259,7 +259,6 @@ static struct option longopts[] = {
{ "options", 0, NULL, 'i'},
{ "fstype", 0, NULL, 's'},
{ "node", 0, NULL, 't'},
- { "quiet", 0, NULL, 'q'},
longopts_COMMON
{ NULL, 0, NULL, 0}
};
@@ -274,7 +273,6 @@ int mountinfo (int argc, char **argv)
char **nodes = NULL;
char *n;
int opt;
- bool quiet = false;
int result;
#define DO_REG(_var) \
@@ -321,9 +319,6 @@ int mountinfo (int argc, char **argv)
case 't':
args.mount_type = mount_from;
break;
- case 'q':
- quiet = true;
- break;
case_RC_COMMON_GETOPT
}
@@ -358,7 +353,7 @@ int mountinfo (int argc, char **argv)
continue;
if (skip_point_regex && regexec (skip_point_regex, n, 0, NULL, 0) == 0)
continue;
- if (! quiet)
+ if (! rc_is_env ("RC_QUIET", "yes"))
printf ("%s\n", n);
result = EXIT_SUCCESS;
}