summaryrefslogtreecommitdiff
path: root/doc/posix-functions/mkdir.texi
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-06 16:08:46 -0600
committerEric Blake <ebb9@byu.net>2009-10-07 07:13:52 -0600
commitcb7317d75af2de40fecdd949e3fb11a85b09e10a (patch)
treefe5e9df66d0f549d68fb73bb1462690275964277 /doc/posix-functions/mkdir.texi
parentda8f2a565cd9522f2a3a1400e538d1853374aa08 (diff)
downloadgnulib-cb7317d75af2de40fecdd949e3fb11a85b09e10a.tar.gz
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>
Diffstat (limited to 'doc/posix-functions/mkdir.texi')
-rw-r--r--doc/posix-functions/mkdir.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-functions/mkdir.texi b/doc/posix-functions/mkdir.texi
index 20d13bb83c..69b67a5289 100644
--- a/doc/posix-functions/mkdir.texi
+++ b/doc/posix-functions/mkdir.texi
@@ -11,6 +11,10 @@ Portability problems fixed by Gnulib:
@item
When the argument ends in a slash, the function call fails on some platforms.
@item
+This function mistakenly succeeds on @samp{mkdir("d/./",mode)} on
+some platforms:
+Cygwin 1.5.x, mingw.
+@item
On Windows platforms (excluding Cygwin), this function is called @code{_mkdir}
and takes only one argument. The fix (without Gnulib) is to define a macro
like this: