summaryrefslogtreecommitdiff
path: root/tools/getfacl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/getfacl.c')
-rw-r--r--tools/getfacl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/getfacl.c b/tools/getfacl.c
index e3df09c..aec08d8 100644
--- a/tools/getfacl.c
+++ b/tools/getfacl.c
@@ -59,6 +59,7 @@ struct option long_options[] = {
{ "tabular", 0, 0, 't' },
{ "absolute-names", 0, 0, 'p' },
{ "numeric", 0, 0, 'n' },
+ { "one-file-system", 0, 0, 1 },
#endif
{ "default", 0, 0, 'd' },
{ "version", 0, 0, 'v' },
@@ -588,6 +589,7 @@ void help(void)
" -P, --physical physical walk, do not follow symbolic links\n"
" -t, --tabular use tabular output format\n"
" -n, --numeric print numeric user/group identifiers\n"
+" --one-file-system skip files on different filesystems\n"
" -p, --absolute-names don't strip leading '/' in pathnames\n"));
}
#endif
@@ -699,6 +701,10 @@ int main(int argc, char *argv[])
print_options |= TEXT_NUMERIC_IDS;
break;
+ case 1: /* one filesystem */
+ walk_flags |= WALK_TREE_ONE_FILESYSTEM;
+ break;
+
case 'v': /* print version */
printf("%s " VERSION "\n", progname);
return 0;