From fb11c098b03c6c4c170414494362c2ebe893439a Mon Sep 17 00:00:00 2001 From: Jiří Moskovčák Date: Jan 28 2008 14:03:17 +0000 Subject: Fixed segfault when using only "--" as parameter (rhbz#430458). --- diff --git a/acl-2.2.39-segfault.patch b/acl-2.2.39-segfault.patch new file mode 100644 index 0000000..a90c37d --- /dev/null +++ b/acl-2.2.39-segfault.patch @@ -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; diff --git a/acl.spec b/acl.spec index 2dc63a3..6a4f595 100644 --- a/acl.spec +++ b/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 2.2.45-3 +- Fixed segfault when using only "--" as parameter +- Resolves: #430458 + * Wed Nov 7 2007 Jiri Moskovcak 2.2.45-2 - Fixed setfacl exitcodes - Resolves: #368451