* m4/getcwd-abort-bug.m4: Fix comments.
* m4/getcwd-path-max.m4: Likewise.
* m4/getcwd.m4: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-04-27 Eric Blake <eblake@redhat.com>
+
+ getcwd: tweak comments
+ * m4/getcwd-abort-bug.m4: Fix comments.
+ * m4/getcwd-path-max.m4: Likewise.
+ * m4/getcwd.m4: Likewise.
+
2011-04-27 Reuben Thomas <rrt@sc3d.org>
and Eric Blake <eblake@redhat.com>
-# serial 2
+# serial 3
# 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.
size_t d;
/* The bug is triggered when PATH_MAX < getpagesize (), so skip
- this relative expensive and invasive test if that's not true. */
+ this relatively expensive and invasive test if that's not true. */
if (getpagesize () <= PATH_MAX)
return 0;
-# serial 15
+# serial 16
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
# This is necessary for at least GNU libc on linux-2.4.19 and 2.4.20.
# I've heard that this is due to a Linux kernel bug, and that it has
-# been fixed between 2.4.21-pre3 and 2.4.21-pre4. */
+# been fixed between 2.4.21-pre3 and 2.4.21-pre4.
# Copyright (C) 2003-2007, 2009-2011 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# with or without modifications, as long as this notice is preserved.
# Written by Paul Eggert.
-# serial 3
+# serial 4
AC_DEFUN([gl_FUNC_GETCWD_NULL],
[
]])])
])
+dnl Check for all known getcwd bugs; useful for a program likely to be
+dnl executed from an arbitrary location.
AC_DEFUN([gl_FUNC_GETCWD],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])