diff options
author | Eric Blake <ebb9@byu.net> | 2009-11-07 21:34:32 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-11-09 06:36:00 -0700 |
commit | 48e988340f85e568ceb9ac1f4bf5824fddf1fd0d (patch) | |
tree | 1c6d25b4261bcdb2b10fb8908c2f7e81f98041cf /doc/posix-functions/open.texi | |
parent | 349396ebfcce12ee8f927fedf82067414c427093 (diff) | |
download | gnulib-48e988340f85e568ceb9ac1f4bf5824fddf1fd0d.tar.gz |
open: detect FreeBSD bug
open("link-to-file/", O_RDONLY) mistakenly succeeds. The previous
patch was enough to fix utimens when no fd is involved, but this is
necessary for futimens to pass.
* m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
symlink.
* doc/posix-functions/open.texi (open): Document the bug.
* doc/posix-functions/utimes.texi (utimes): Likewise.
* tests/test-open.h (test_open): Add parameters, and test symlink
handling.
* tests/test-open.c (main): Adjust caller.
* tests/test-fcntl-safer.c (main): Likewise.
* modules/open-tests (Depends-on): Add stdbool, symlink.
* modules/fcntl-safer-tests (Depends-on): Likewise.
* tests/test-openat.c (main): Add test-open tests.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'doc/posix-functions/open.texi')
-rw-r--r-- | doc/posix-functions/open.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/posix-functions/open.texi b/doc/posix-functions/open.texi index 6a919d8154..933a246153 100644 --- a/doc/posix-functions/open.texi +++ b/doc/posix-functions/open.texi @@ -12,7 +12,7 @@ Portability problems fixed by the Gnulib module open: This function does not fail when the file name argument ends in a slash and (without the slash) names a nonexistent file or a file that is not a directory, on some platforms: -HP-UX 11.00, Solaris 9, Irix 5.3. +FreeBSD 7.2, HP-UX 11.00, Solaris 9, Irix 5.3. @item On Windows platforms (excluding Cygwin), this function does usually not recognize the @file{/dev/null} filename. |