Fixed segfault when using only "--" as parameter (rhbz#430458).
This commit is contained in:
parent
3143947dd7
commit
fb11c098b0
11
acl-2.2.39-segfault.patch
Normal file
11
acl-2.2.39-segfault.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- acl-2.2.45/setfacl/setfacl.c.segfault 2008-01-28 13:56:36.000000000 +0100
|
||||
+++ acl-2.2.45/setfacl/setfacl.c 2008-01-28 13:58:08.000000000 +0100
|
||||
@@ -679,6 +679,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
while (optind < argc) {
|
||||
+ if(!seq)
|
||||
+ goto synopsis;
|
||||
if (seq_empty(seq))
|
||||
goto synopsis;
|
||||
saw_files = 1;
|
8
acl.spec
8
acl.spec
@ -1,7 +1,7 @@
|
||||
Summary: Access control list utilities
|
||||
Name: acl
|
||||
Version: 2.2.45
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: libattr-devel >= 2.4.1
|
||||
BuildRequires: autoconf, libtool >= 1.5, gettext, gawk
|
||||
@ -11,6 +11,7 @@ Patch1: acl-2.2.39-build.patch
|
||||
Patch2: acl-2.2.39-path_max.patch
|
||||
Patch3: acl-2.2.39-params.patch
|
||||
Patch4: acl-2.2.45-exitcode.patch
|
||||
Patch5: acl-2.2.39-segfault.patch
|
||||
License: GPL
|
||||
Group: System Environment/Base
|
||||
URL: http://oss.sgi.com/projects/xfs/
|
||||
@ -50,6 +51,7 @@ defined in POSIX 1003.1e draft standard 17.
|
||||
%patch2 -p1 -b .path_max
|
||||
%patch3 -p1 -b .params
|
||||
%patch4 -p1 -b .exitcode
|
||||
%patch5 -p1 -b .segfault
|
||||
autoconf
|
||||
|
||||
%build
|
||||
@ -105,6 +107,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/%{_lib}/libacl.so.*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 28 2008 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.45-3
|
||||
- Fixed segfault when using only "--" as parameter
|
||||
- Resolves: #430458
|
||||
|
||||
* Wed Nov 7 2007 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.45-2
|
||||
- Fixed setfacl exitcodes
|
||||
- Resolves: #368451
|
||||
|
Loading…
Reference in New Issue
Block a user