about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-16 06:26:38 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-16 06:26:38 +0000
commit125a8cf7ff1dadf295bd992d10a5115160be2409 (patch)
treea5ceb06fcede11e522d87bfbd134050b22a4c0be /sysdeps
parent805ed74c10b7399f6bbee89939a80ddec252abcb (diff)
downloadglibc-125a8cf7ff1dadf295bd992d10a5115160be2409.tar.gz
glibc-125a8cf7ff1dadf295bd992d10a5115160be2409.tar.xz
glibc-125a8cf7ff1dadf295bd992d10a5115160be2409.zip
* sysdeps/unix/rewinddir.c: Reset filepos.
	* dirent/tst-seekdir.c: Check telldir value after calling rewinddir.

2005-01-15  Ulrich Drepper  <drepper@redhat.com>

	* elf/tst-auditmod1.c: Reduce duplication.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/rewinddir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/rewinddir.c b/sysdeps/unix/rewinddir.c
index 9f3724fc6a..051e93595e 100644
--- a/sysdeps/unix/rewinddir.c
+++ b/sysdeps/unix/rewinddir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995-1998, 2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -30,6 +30,7 @@ rewinddir (dirp)
 {
   __libc_lock_lock (dirp->lock);
   (void) __lseek (dirp->fd, (off_t) 0, SEEK_SET);
+  dirp->filepos = 0;
   dirp->offset = 0;
   dirp->size = 0;
   __libc_lock_unlock (dirp->lock);