summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-06-18 14:29:29 +0000
committerJim Meyering <jim@meyering.net>2006-06-18 14:29:29 +0000
commitbf24627b4fb032008671be06f19ebadee6dd0c04 (patch)
tree44345f231e3a6deb46674c70f99322c6fba8e34a
parent0399d3ff5f28ad9dd724a51c563c291ab18dc413 (diff)
downloadcoreutils-bf24627b4fb032008671be06f19ebadee6dd0c04.tar.xz
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
Low-probability clean-up should be to use rmdir to get rid of the just-created directory, not unlink.
-rw-r--r--m4/ChangeLog4
-rw-r--r--m4/getcwd-path-max.m46
2 files changed, 7 insertions, 3 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 827bc22d0..ced95ddf2 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,5 +1,9 @@
2006-06-18 Jim Meyering <jim@meyering.net>
+ * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
+ Low-probability clean-up should be to use rmdir to get rid of
+ the just-created directory, not unlink.
+
* ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
configure fail, and request a bug report to inform us about it.
Add a comment that, barring reports to the contrary, in 2007 we'll
diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4
index 4bc8ab70f..3d0af8751 100644
--- a/m4/getcwd-path-max.m4
+++ b/m4/getcwd-path-max.m4
@@ -1,4 +1,4 @@
-#serial 11
+#serial 12
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
@@ -157,8 +157,8 @@ main ()
{
size_t i;
- /* Unlink first, in case the chdir failed. */
- unlink (DIR_NAME);
+ /* Try rmdir first, in case the chdir failed. */
+ rmdir (DIR_NAME);
for (i = 0; i <= n_chdirs; i++)
{
if (chdir ("..") < 0)