bug-gnulib
[Top][All Lists]
Advanced

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

Re: fopen bug on Solaris, HP-UX


From: Eric Blake
Subject: Re: fopen bug on Solaris, HP-UX
Date: Tue, 23 Sep 2008 21:42:39 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

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

According to Bruno Haible on 8/30/2008 6:39 AM:
> Hi,
> 
> The documented open() bug on Solaris [7-9] and HP-UX 11.00 exists also as a
> bug in fopen(). I'm applying this to fix it:

>       * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
>       access and the filename ends in a slash. Code copied from lib/open.c.

Should we also check for the bug, present in at least Irix 5.3, where
fopen("/dev/null/","r") succeeds instead of failing with the required
ENOTDIR?  What about working around the fact that mingw fails with EINVAL
instead of ENOTDIR?

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

Eric Blake             address@hidden
-----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

iEYEARECAAYFAkjZty8ACgkQ84KuGfSFAYB3GACfRjCGzDAvSfn5oPw8PBwWI9U2
9aIAn1ZDldJfxHmTnJIEX1bkf+M8jSgW
=1rgJ
-----END PGP SIGNATURE-----




reply via email to

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