summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-07-20 04:24:38 +0200
committerMike Frysinger <vapier@gentoo.org>2022-11-12 21:49:05 +0700
commit53f267f4f315707ac25f4b5201d0e393cece4b7a (patch)
tree2e3dec63bb027e748601d60ef3e4eccea730d814
parent9f114efe76525ae14e7c959d4154e7b881589f18 (diff)
downloadacl-53f267f4f315707ac25f4b5201d0e393cece4b7a.tar.gz
man: Document setfacl --restore=-
This special argument was not previously documented, and it is not obvious from it might be supported. Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r--man/man1/setfacl.15
1 files changed, 3 insertions, 2 deletions
diff --git a/man/man1/setfacl.1 b/man/man1/setfacl.1
index ce7c9ea..1ccaa11 100644
--- a/man/man1/setfacl.1
+++ b/man/man1/setfacl.1
@@ -30,7 +30,7 @@ setfacl \- set file access control lists
[\-bkndRLPvh] [{\-m|\-x} acl_spec] [{\-M|\-X} acl_file] file ...
.B setfacl
-\-\-restore=file
+\-\-restore={file|-}
.SH DESCRIPTION
This utility sets Access Control Lists (ACLs) of files and directories.
@@ -107,13 +107,14 @@ All operations apply to the Default ACL. Regular ACL entries in the
input set are promoted to Default ACL entries. Default ACL entries in
the input set are discarded. (A warning is issued if that happens).
.TP 4
-.I \-\-restore=file
+.I \-\-restore={file|-}
Restore a permission backup created by `getfacl \-R' or similar. All permissions
of a complete directory subtree are restored using this mechanism. If the input
contains owner comments or group comments, setfacl attempts to restore the
owner and owning group. If the input contains flags comments (which define the setuid,
setgid, and sticky bits), setfacl sets those three bits accordingly; otherwise,
it clears them. This option cannot be mixed with other options except `\-\-test'.
+If the file specified is '\fB-\fP', then it will be read from standard input.
.TP 4
.I \-\-test
Test mode. Instead of changing the ACLs of any files, the resulting ACLs are listed.