mirror of git://sourceware.org/git/glibc.git
Update.
2002-12-05 Ulrich Drepper <drepper@redhat.com> * dirent/bug-readdir1.c (main): Don't call closedir, just close on the file descriptor. This is testing what the bug report was about.
This commit is contained in:
parent
d8d317454d
commit
bf6fc6c1a5
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-12-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* dirent/bug-readdir1.c (main): Don't call closedir, just close on
|
||||||
|
the file descriptor. This is testing what the bug report was about.
|
||||||
|
|
||||||
2002-12-04 Ulrich Drepper <drepper@redhat.com>
|
2002-12-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* po/be.po: New file.
|
* po/be.po: New file.
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@ main (void)
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* close the dir stream, making it invalid */
|
/* close the directory file descriptor, making it invalid */
|
||||||
if (closedir (dirp))
|
if (close (dirfd (dirp)) != 0)
|
||||||
{
|
{
|
||||||
perror ("closedir");
|
puts ("could not close directory file descriptor");
|
||||||
exit (1);
|
/* This is not an error. It is not guaranteed this is possible. */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ent = readdir (dirp);
|
ent = readdir (dirp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue