man-pages/man-pages-3.42-getdents.patch

16 lines
589 B
Diff
Raw Normal View History

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.