mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
unlink("link-to-file/") mistakenly removed "file". * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with slash on symlink. * doc/posix-functions/unlink.texi (unlink): Document the bug. * doc/posix-functions/remove.texi (remove): Likewise. * tests/test-unlink.h (test_unlink): Enhance test. * tests/test-remove.c (main): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
27 lines
605 B
Plaintext
27 lines
605 B
Plaintext
@node remove
|
|
@section @code{remove}
|
|
@findex remove
|
|
|
|
POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/remove.html}
|
|
|
|
Gnulib module: remove
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function fails to reject trailing slashes on non-directories on
|
|
some platforms:
|
|
FreeBSD 7.2, Solaris 9.
|
|
@item
|
|
This function mistakenly removes a directory with
|
|
@code{remove("dir/./")} on some platforms:
|
|
Cygwin 1.5.x.
|
|
@item
|
|
This function does not remove empty directories on some platforms:
|
|
mingw.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|