[man-pages] - added information about incorrect use of getdents(2) call to the man page (#809490)

pschiffe pschiffe at fedoraproject.org
Wed Sep 19 13:57:46 UTC 2012


commit 1eca3cb073c15f15004059eefd070820e7515cef
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Thu Sep 13 15:42:21 2012 +0200

    - added information about incorrect use of getdents(2) call to the man page (#809490)

 man-pages-3.42-getdents.patch |   15 +++++++++++++++
 man-pages.spec                |    4 ++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/man-pages-3.42-getdents.patch b/man-pages-3.42-getdents.patch
new file mode 100644
index 0000000..fcce883
--- /dev/null
+++ b/man-pages-3.42-getdents.patch
@@ -0,0 +1,15 @@
+diff -ur man-pages-3.42.orig/man2/getdents.2 man-pages-3.42/man2/getdents.2
+--- man-pages-3.42.orig/man2/getdents.2	2012-08-14 00:39:36.000000000 +0200
++++ man-pages-3.42/man2/getdents.2	2012-09-13 15:27:45.241212934 +0200
+@@ -187,6 +187,11 @@
+ fields employed in the
+ .IR linux_dirent
+ structure.
++
++Warning: Result of the
++.BR getdents ()
++system call in 32 bit application on 64 bit OS doesn't have to be
++always correct, potentially the call itself can fail.
+ .SH EXAMPLE
+ .\" FIXME: This program uses the older getdents(0 system call
+ .\" and the structure with smaller field widths.
diff --git a/man-pages.spec b/man-pages.spec
index ed30e87..2dd3152 100644
--- a/man-pages.spec
+++ b/man-pages.spec
@@ -58,6 +58,8 @@ Patch52: man-pages-3.42-ip.patch
 Patch53: man-pages-3.42-ip-local-port.patch
 # resolves: #694860
 Patch54: man-pages-3.42-nsswitch-conf-sssd.patch
+# resolves: #809490
+Patch55: man-pages-3.42-getdents.patch
 
 
 Autoreq: false
@@ -94,6 +96,7 @@ Documentation Project (LDP).
 %patch52 -p1
 %patch53 -p1
 %patch54 -p1
+%patch55 -p1
 
 ## Remove man pages we are not going to use ##
 
@@ -171,6 +174,7 @@ cd ..
 - add documentation of several source-specific multicast socket options to the ip(7) man page (#804003)
 - improved explanation about calling listen or connect on the ip(7) man page (#787567)
 - mention sssd in the nsswitch.conf(5) man page (#694860)
+- added information about incorrect use of getdents(2) call to the man page (#809490)
 
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.41-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list