This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: getdents64 problem
- To: Mogens Kjaer <mk at crc dot dk>
- Subject: Re: getdents64 problem
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 19 Jan 2001 08:43:31 -0800
- Cc: Jakub Jelinek <jakub at redhat dot com>, Andreas Jaeger <aj at suse dot de>, libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>, Trond Myklebust <trond dot myklebust at fys dot uio dot no>
- References: <u8vgrbdejp.fsf@gromit.rhein-neckar.de><20010119115419.R1136@sunsite.ms.mff.cuni.cz><3A682664.41109116@crc.dk>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Mogens Kjaer <mk@crc.dk> writes:
> *** getdents.c Thu Jan 18 14:58:26 2001
> --- getdents.c.ORIG Fri Jan 19 12:31:19 2001
> ***************
> *** 157,165 ****
> if ((sizeof (dp->d_ino) != sizeof (kdp->d_ino)
> && dp->d_ino != d_ino)
> || (sizeof (dp->d_off) != sizeof (kdp->d_off)
> ! && (dp->d_off != d_off && dp->d_off != -1)))
> {
> - /* MK patch for d_off == -1 */
> /* Overflow. If there was at least one entry
> before this one, return them without error,
> otherwise signal overflow. */
> --- 157,164 ----
> if ((sizeof (dp->d_ino) != sizeof (kdp->d_ino)
> && dp->d_ino != d_ino)
> || (sizeof (dp->d_off) != sizeof (kdp->d_off)
> ! && dp->d_off != d_off))
> {
> /* Overflow. If there was at least one entry
> before this one, return them without error,
> otherwise signal overflow. */
I cannot see that this is correct. Send me the output of `strace -v'
of a program using getdents. Please note the -v parameter for strace.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------