From fc2a310f0109ed7eda8b67b48cb7de09ef65a7f3 Mon Sep 17 00:00:00 2001 From: Jiří Moskovčák Date: Sep 20 2007 14:48:10 +0000 Subject: Rewriten path_max patch to support long UTF8 names --- diff --git a/acl-2.2.39-path_max.patch b/acl-2.2.39-path_max.patch index 4f4e7c3..42f8524 100644 --- a/acl-2.2.39-path_max.patch +++ b/acl-2.2.39-path_max.patch @@ -14,11 +14,11 @@ int c; - char linebuf[1024]; + /* -+ Max PATH_MAX bytes even for UTF-8 path names and additional 6 -+ bytes for "#file:". Not a good solution but for now it is the ++ Max PATH_MAX bytes even for UTF-8 path names and additional 9 ++ bytes for "# file: ".Not a good solution but for now it is the + best I can do without too much impact on the code. [tw] + */ -+ char linebuf[PATH_MAX+6]; ++ char linebuf[(4*PATH_MAX)+9]; char *cp; char *p; int comments_read = 0; diff --git a/acl.spec b/acl.spec index 584b12e..91d77e2 100644 --- a/acl.spec +++ b/acl.spec @@ -1,7 +1,7 @@ Summary: Access control list utilities Name: acl Version: 2.2.39 -Release: 3.1%{?dist} +Release: 4%{?dist} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libattr-devel >= 2.4.1 Source: ftp://oss.sgi.com/projects/xfs/cmd_tars/acl_%{version}-1.tar.gz @@ -102,6 +102,10 @@ rm -rf $RPM_BUILD_ROOT /%{_lib}/libacl.so.* %changelog +* Thu Sep 20 2007 Jiri Moskovcak 2.2.39-4 +- Rewriten path_max patch to support long UTF8 names +- Resolves #287701, #183181 + * Wed Mar 21 2007 Thomas Woerner 2.2.39-3.1 - new improved walk patch with fixed getfacl exit code (rhbz#232884)