Compare commits

...

4 Commits
rawhide ... f13

Author SHA1 Message Date
Kamil Dudka
dd0b62fe8d get fixes for #595674 and #613336 into Fedora 13
- let acl depend on the same version of libacl (#595674)
- remove dependency of libacl-devel on nfs-utils-lib and openldap
(#613336)
2010-08-04 00:05:32 +02:00
Fedora Release Engineering
32e0950a0a dist-git conversion 2010-07-28 09:34:34 +00:00
Kamil Dudka
d4fb3d28d2 - prevent setfacl --restore from SIGSEGV on malformed restore file
(#576550)
2010-03-24 16:51:27 +00:00
Jesse Keating
95420551e8 Initialize branch F-13 for acl 2010-02-17 00:50:03 +00:00
4 changed files with 45 additions and 24 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: acl
# $Id: Makefile,v 1.2 2007/10/15 18:35:20 notting Exp $
NAME := acl
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -0,0 +1,27 @@
diff --git a/setfacl/setfacl.c b/setfacl/setfacl.c
index 7142af0..23784a7 100644
--- a/setfacl/setfacl.c
+++ b/setfacl/setfacl.c
@@ -125,7 +125,7 @@ restore(
uid_t uid;
gid_t gid;
mode_t mask, flags;
- struct do_set_args args;
+ struct do_set_args args = { 0 };
int line = 0, backup_line;
int error, status = 0;
int chmod_required = 0;
diff --git a/test/misc.test b/test/misc.test
index e6140da..a910bd0 100644
--- a/test/misc.test
+++ b/test/misc.test
@@ -424,3 +424,9 @@ Now, chmod should change the group_obj entry
>
$ rmdir d
+
+Malformed restore file
+
+ $ echo "# owner: root" > f
+ $ setfacl --restore=f 2>&1
+ >setfacl: f: No filename found in line 0, aborting

View File

@ -1,16 +1,24 @@
Summary: Access control list utilities
Name: acl
Version: 2.2.49
Release: 4%{?dist}
Release: 6%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gawk
BuildRequires: gettext
BuildRequires: libattr-devel
BuildRequires: libtool
Requires: libacl = %{version}-%{release}
Source: http://download.savannah.gnu.org/releases-noredirect/acl/acl-%{version}.src.tar.gz
Patch1: acl-2.2.39-build.patch
# bz #488674
Patch2: acl-2.2.49-setfacl-walk.patch
# bz #467936
Patch3: acl-2.2.49-bz467936.patch
# bz #576550
Patch4: acl-2.2.49-setfacl-restore.patch
License: GPLv2+
Group: System Environment/Base
URL: http://oss.sgi.com/projects/xfs/
@ -32,11 +40,10 @@ the POSIX 1003.1e draft standard 17 functions for manipulating access
control lists.
%package -n libacl-devel
Summary: Access control list static libraries and headers.
Summary: Access control list static libraries and headers
License: LGPLv2+
Group: Development/Libraries
Requires: libacl = %{version}-%{release}, libattr-devel
Requires: nfs-utils-lib, openldap
%description -n libacl-devel
This package contains static libraries and header files needed to develop
@ -48,6 +55,7 @@ defined in POSIX 1003.1e draft standard 17.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
touch .census
@ -105,6 +113,13 @@ rm -rf $RPM_BUILD_ROOT
/%{_lib}/libacl.so.*
%changelog
* Wed Aug 04 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-6
- let acl depend on the same version of libacl (#595674)
- remove dependency of libacl-devel on nfs-utils-lib and openldap (#613336)
* Wed Mar 24 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-5
- prevent setfacl --restore from SIGSEGV on malformed restore file (#576550)
* Tue Jan 19 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-4
- do not package a static library (#556036)
- remove multilib patch no longer useful