[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewinddir bug
From: |
Kevin Pedretti |
Subject: |
rewinddir bug |
Date: |
Thu, 27 May 2004 09:28:12 -0700 |
While porting glibc to a new platform, I noticed that rewinddir doesn't
reset the DIR offset to 0 from telldir()'s perspective. The attached
readdir.c test case outputs the following on Linux:
dir loc = 378031617
rewinding dir
dir loc = 378031617
The numbers will vary; the important thing is that the second dir loc
isn't 0 after the rewinddir(). I believe the attached patch will fix
this but have not tested on Linux.
Kevin
readdir.c
Description: Text Data
rewinddir.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rewinddir bug,
Kevin Pedretti <=