rpms/acl/F-12 acl-2.2.49-setfacl-walk.patch, NONE, 1.1 acl.spec, 1.53, 1.54
Kamil Dudka
kdudka at fedoraproject.org
Sat Dec 26 20:18:01 UTC 2009
Author: kdudka
Update of /cvs/extras/rpms/acl/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29021
Modified Files:
acl.spec
Added Files:
acl-2.2.49-setfacl-walk.patch
Log Message:
- tweaked setfacl tree walk flags (#488674)
acl-2.2.49-setfacl-walk.patch:
setfacl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- NEW FILE acl-2.2.49-setfacl-walk.patch ---
diff --git a/setfacl/setfacl.c b/setfacl/setfacl.c
index 091b9cc..be34e69 100644
--- a/setfacl/setfacl.c
+++ b/setfacl/setfacl.c
@@ -76,7 +76,7 @@ struct option long_options[] = {
const char *progname;
const char *cmd_line_options, *cmd_line_spec;
-int walk_flags = WALK_TREE_DEREFERENCE;
+int walk_flags = WALK_TREE_DEREFERENCE_TOPLEVEL;
int opt_recalculate; /* recalculate mask entry (0=default, 1=yes, -1=no) */
int opt_promote; /* promote access ACL to default ACL */
int opt_test; /* do not write to the file system.
@@ -580,13 +580,14 @@ int main(int argc, char *argv[])
break;
case 'L': /* follow symlinks */
- walk_flags |= WALK_TREE_LOGICAL;
+ walk_flags |= WALK_TREE_LOGICAL | WALK_TREE_DEREFERENCE;
walk_flags &= ~WALK_TREE_PHYSICAL;
break;
case 'P': /* do not follow symlinks */
walk_flags |= WALK_TREE_PHYSICAL;
- walk_flags &= ~WALK_TREE_LOGICAL;
+ walk_flags &= ~(WALK_TREE_LOGICAL | WALK_TREE_DEREFERENCE |
+ WALK_TREE_DEREFERENCE_TOPLEVEL);
break;
case 't': /* test mode */
Index: acl.spec
===================================================================
RCS file: /cvs/extras/rpms/acl/F-12/acl.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -p -r1.53 -r1.54
--- acl.spec 20 Dec 2009 11:31:37 -0000 1.53
+++ acl.spec 26 Dec 2009 20:18:01 -0000 1.54
@@ -1,13 +1,14 @@
Summary: Access control list utilities
Name: acl
Version: 2.2.49
-Release: 1%{?dist}
+Release: 2%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libattr-devel >= 2.4.1
BuildRequires: autoconf, libtool >= 1.5, gettext, gawk
Source: http://download.savannah.gnu.org/releases-noredirect/acl/acl-%{version}.src.tar.gz
Patch0: acl-2.2.3-multilib.patch
Patch1: acl-2.2.39-build.patch
+Patch2: acl-2.2.49-setfacl-walk.patch
License: GPLv2+
Group: System Environment/Base
URL: http://oss.sgi.com/projects/xfs/
@@ -44,6 +45,7 @@ defined in POSIX 1003.1e draft standard
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
autoconf
%build
@@ -99,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
/%{_lib}/libacl.so.*
%changelog
+* Sat Dec 26 2009 Kamil Dudka <kdudka at redhat.com> 2.2.49-2
+- tweaked setfacl tree walk flags (#488674), thanks to Markus Steinborn
+
* Sun Dec 20 2009 Kamil Dudka <kdudka at redhat.com> 2.2.49-1
- new upstream bugfix release
- big cleanup in patches
More information about the scm-commits
mailing list