Hash :
cb7317d7
Author :
Date :
2009-10-06T16:08:46
mkdir, mkdirat: fix cygwin 1.5.x bug
mkdir("dir/./",mode) mistakenly succeeded.
* lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
* m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
* m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
bug.
(gl_PREREQ_MKDIR): Delete unused macro.
* modules/mkdir (Files): Track file rename.
(configure.ac): Update macro name.
* modules/openat (Depends-on): Add mkdir.
* doc/posix-functions/mkdir.texi (mkdir): Document the bug.
Signed-off-by: Eric Blake <ebb9@byu.net>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
Description:
Open a file at a directory.
Files:
lib/at-func.c
lib/fchmodat.c
lib/fchownat.c
lib/fstatat.c
lib/mkdirat.c
lib/openat.c
lib/openat.h
lib/openat-priv.h
lib/openat-proc.c
lib/unlinkat.c
m4/openat.m4
m4/mode_t.m4
Depends-on:
dirname
errno
extensions
fchdir
fcntl-h
fdopendir
gettext-h
inline
intprops
lchown
lstat
mkdir
open
openat-die
rmdir
same-inode
save-cwd
stdbool
sys_stat
unistd
unlink
configure.ac:
gl_FUNC_OPENAT
Makefile.am:
Include:
<fcntl.h>
<sys/stat.h>
<unistd.h>
"openat.h"
License:
GPL
Maintainer:
Jim Meyering