resolves: #652869
fix the necessary buffer limit in the man page for readdir_r
This commit is contained in:
parent
045ccfc7f7
commit
c967177abb
16
man-pages-3.32-readdir.patch
Normal file
16
man-pages-3.32-readdir.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff -up man-pages-3.32/man3/readdir.3.pom man-pages-3.32/man3/readdir.3
|
||||
--- man-pages-3.32/man3/readdir.3.pom 2010-12-03 08:02:01.000000000 +0100
|
||||
+++ man-pages-3.32/man3/readdir.3 2011-01-27 16:05:54.000000000 +0100
|
||||
@@ -226,8 +226,10 @@ as follows:
|
||||
.in +4n
|
||||
.nf
|
||||
|
||||
-len = offsetof(struct dirent, d_name) +
|
||||
- pathconf(dirpath, _PC_NAME_MAX) + 1
|
||||
+len = (offsetof(struct dirent, d_name) +
|
||||
+ pathconf(dirpath, _PC_NAME_MAX) + 1 + sizeof(long))
|
||||
+ & -sizeof(long);
|
||||
+
|
||||
entryp = malloc(len);
|
||||
|
||||
.fi
|
@ -4,7 +4,7 @@
|
||||
Summary: Man (manual) pages from the Linux Documentation Project
|
||||
Name: man-pages
|
||||
Version: 3.32
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
|
||||
Group: Documentation
|
||||
URL: http://www.kernel.org/pub/linux/docs/manpages/
|
||||
@ -36,6 +36,8 @@ Patch73: man-pages-posix-2003-printf.patch
|
||||
Patch75: man-pages-3.30-prctl.patch
|
||||
#Resolves: #652870
|
||||
Patch76: man-pages-3.32-strtol.patch
|
||||
#Resolves: #652869
|
||||
Patch77: man-pages-3.32-readdir.patch
|
||||
#Resolves: #655961
|
||||
Conflicts: quota < 3.17-14
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -72,6 +74,7 @@ rmdir man-pages-posix-%{posix_version}-%{posix_release}
|
||||
%patch73 -p1
|
||||
%patch75 -p1
|
||||
%patch76 -p1
|
||||
%patch77 -p1
|
||||
|
||||
### And now remove those we are not going to use:
|
||||
|
||||
@ -127,6 +130,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%lang(en) %{_mandir}/en/man*/*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 27 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 3.31-6
|
||||
- resolves: #652869
|
||||
fix the necessary buffer limit in the man page for readdir_r
|
||||
|
||||
* Thu Jan 27 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 3.31-5
|
||||
- resolves: #672348
|
||||
problems with the encoding of characters set man-pages
|
||||
|
Loading…
Reference in New Issue
Block a user