Rewriten path_max patch to support long UTF8 names

This commit is contained in:
Jiří Moskovčák 2007-09-20 14:48:10 +00:00
commit fc2a310f01
2 changed files with 8 additions and 4 deletions

View file

@ -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;

View file

@ -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 <jmoskovc@redhat.com> 2.2.39-4
- Rewriten path_max patch to support long UTF8 names
- Resolves #287701, #183181
* Wed Mar 21 2007 Thomas Woerner <twoerner@redhat.com> 2.2.39-3.1
- new improved walk patch with fixed getfacl exit code (rhbz#232884)