bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fdopendir on non-directory


From: Eric Blake
Subject: fdopendir on non-directory
Date: Tue, 06 Oct 2009 20:59:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Another bug detected by gnulib:

fdopendir(creat("file",0600)) returns a DIR* pointer rather than NULL;
subsequent attempts to use that pointer with readdir() then fail with
ENOTDIR.  But POSIX requires that the fdopendir fail with ENOTDIR up front.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrMBAQACgkQ84KuGfSFAYBemwCg0y7zV9+c36Ooupa2gZ33IPtp
cMUAn0QC3xVaSBGJdChePDog0yZ+d5Hf
=colZ
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]