autoconf-patches
[Top][All Lists]
Advanced

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

AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK was reversed


From: Jim Meyering
Subject: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK was reversed
Date: Tue, 23 May 2006 23:26:34 +0200

I've just checked in the following change.
It made it so coreutils-5.96 uses the lib/lstat.c wrapper
when it shouldn't (e.g., w/linux) and doesn't when it should.

2006-05-23  Jim Meyering  <address@hidden>

        * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
        Fix typo introduced with 2006-04-02 change.  It reversed the sense
        of the test.

Index: lib/autoconf/functions.m4
===================================================================
RCS file: /sources/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -p -u -r1.101 -r1.102
--- lib/autoconf/functions.m4   22 May 2006 04:45:03 -0000      1.101
+++ lib/autoconf/functions.m4   23 May 2006 21:23:32 -0000      1.102
@@ -841,7 +841,7 @@ if test "$as_ln_s" = "ln -s" && ln -s co
      /* Linux will dereference the symlink and fail.
        That is better in the sense that it means we will not
        have to compile and use the lstat wrapper.  */
-     return lstat ("conftest.sym/", &sbuf) != 0;])],
+     return lstat ("conftest.sym/", &sbuf) == 0;])],
                [ac_cv_func_lstat_dereferences_slashed_symlink=yes],
                [ac_cv_func_lstat_dereferences_slashed_symlink=no],
                [ac_cv_func_lstat_dereferences_slashed_symlink=no])




reply via email to

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