Resolves: #1337039 - setfacl.1: document the meaning of '-' in perms
This commit is contained in:
parent
b7ea8ae975
commit
25cf2189dd
|
@ -0,0 +1,60 @@
|
||||||
|
From ecee95a94420d6b0336d4caec6bc66b53442367b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
Date: Thu, 19 May 2016 10:28:13 +0200
|
||||||
|
Subject: [PATCH] setfacl.1: document the meaning of '-' in perms
|
||||||
|
|
||||||
|
[agruen: Description further clarified.]
|
||||||
|
|
||||||
|
Upstream-commit: ea3c6bb711e76d91759f8bf5475e1900362a3142
|
||||||
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
---
|
||||||
|
man/man1/setfacl.1 | 28 +++++++++++++++++++++-------
|
||||||
|
1 file changed, 21 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/man/man1/setfacl.1 b/man/man1/setfacl.1
|
||||||
|
index 0c7c046..e092e51 100644
|
||||||
|
--- a/man/man1/setfacl.1
|
||||||
|
+++ b/man/man1/setfacl.1
|
||||||
|
@@ -194,18 +194,32 @@ you can specify either a name or a number.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
|
.I perms
|
||||||
|
-field is a combination of characters that indicate the permissions: read
|
||||||
|
+field is a combination of characters that indicate the read
|
||||||
|
.IR (r) ,
|
||||||
|
write
|
||||||
|
.IR (w) ,
|
||||||
|
execute
|
||||||
|
-.IR (x) ,
|
||||||
|
-execute only if the file is a directory or already has execute permission
|
||||||
|
-for some user
|
||||||
|
-.IR (X) .
|
||||||
|
-Alternatively, the
|
||||||
|
+.IR (x)
|
||||||
|
+permissions. Dash characters in the
|
||||||
|
.I perms
|
||||||
|
-field can be an octal digit (0\-7).
|
||||||
|
+field
|
||||||
|
+.IR (\-)
|
||||||
|
+are ignored. The character
|
||||||
|
+.I X
|
||||||
|
+stands for the execute permission if the file is a directory or already has
|
||||||
|
+execute permission for some user. Alternatively, the
|
||||||
|
+.I perms
|
||||||
|
+field can define the permissions numerically, as a bit-wise combination of read
|
||||||
|
+.IR (4) ,
|
||||||
|
+write
|
||||||
|
+.IR (2) ,
|
||||||
|
+and execute
|
||||||
|
+.IR (1) .
|
||||||
|
+Zero
|
||||||
|
+.I perms
|
||||||
|
+fields or
|
||||||
|
+.I perms
|
||||||
|
+fields that only consist of dashes indicate no permissions.
|
||||||
|
.PP
|
||||||
|
.SS AUTOMATICALLY CREATED ENTRIES
|
||||||
|
Initially, files and directories contain only the three base ACL entries
|
||||||
|
--
|
||||||
|
2.5.5
|
||||||
|
|
5
acl.spec
5
acl.spec
|
@ -25,6 +25,9 @@ Patch4: 0004-acl-2.2.52-libdir.patch
|
||||||
# fix SIGSEGV of getfacl -e on overly long group name
|
# fix SIGSEGV of getfacl -e on overly long group name
|
||||||
Patch5: 0005-acl-2.2.52-getfacl-segv.patch
|
Patch5: 0005-acl-2.2.52-getfacl-segv.patch
|
||||||
|
|
||||||
|
# setfacl.1: document the meaning of '-' in perms (#1337039)
|
||||||
|
Patch6: acl-2.2.52-setfacl-man-page.patch
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: https://savannah.nongnu.org/projects/acl
|
URL: https://savannah.nongnu.org/projects/acl
|
||||||
|
@ -64,6 +67,7 @@ defined in POSIX 1003.1e draft standard 17.
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
@ -132,6 +136,7 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jun 22 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-13
|
* Thu Jun 22 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-13
|
||||||
|
- setfacl.1: document the meaning of '-' in perms (#1337039)
|
||||||
- avoid failure of %%check when building as root (#1085389)
|
- avoid failure of %%check when building as root (#1085389)
|
||||||
|
|
||||||
* Wed May 17 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-12
|
* Wed May 17 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-12
|
||||||
|
|
Loading…
Reference in New Issue