bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getcwd: Remove obsolete code


From: Bruno Haible
Subject: getcwd: Remove obsolete code
Date: Fri, 14 Aug 2020 20:48:51 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

This patch removes a workaround against a problem that was fixed on 2008-04-21.


2020-08-14  Bruno Haible  <bruno@clisp.org>

        getcwd: Remove obsolete code.
        * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
        * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.

diff --git a/m4/getcwd-abort-bug.m4 b/m4/getcwd-abort-bug.m4
index 2715f0a..d89dddf 100644
--- a/m4/getcwd-abort-bug.m4
+++ b/m4/getcwd-abort-bug.m4
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 # Determine whether getcwd aborts when the length of the working directory
 # name is unusually large.  Any length between 4k and 16k trigger the bug
 # when using glibc-2.4.90-9 or older.
@@ -46,9 +46,6 @@ AC_DEFUN([gl_FUNC_GETCWD_ABORT_BUG],
 
 ]gl_PATHMAX_SNIPPET[
 
-/* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
-#undef mkdir
-
 #ifndef S_IRWXU
 # define S_IRWXU 0700
 #endif
diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4
index 1ff3f25..b0eea69 100644
--- a/m4/getcwd-path-max.m4
+++ b/m4/getcwd-path-max.m4
@@ -1,4 +1,4 @@
-# serial 23
+# serial 24
 # Check for several getcwd bugs with long file names.
 # If so, arrange to compile the wrapper function.
 
@@ -55,9 +55,6 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
 /* Use the getcwd function, not any macro.  */
 #undef getcwd
 
-/* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
-#undef mkdir
-
 #ifndef S_IRWXU
 # define S_IRWXU 0700
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]