]> Savannah Git Hosting - gnulib.git/commitdiff
chown: Fix configure output (regression from 2019-03-23).
authorBruno Haible <bruno@clisp.org>
Sun, 8 Sep 2019 21:05:22 +0000 (23:05 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Sep 2019 21:05:22 +0000 (23:05 +0200)
* m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
gl_cv_func_chown_follows_symlink variable.

ChangeLog
m4/chown.m4

index 9b1f6d0eeb26a4b3c6e8a6f9315cf37c467214b0..db3935774066b77a59573beaae15180434eaf65d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-09-08  Bruno Haible  <bruno@clisp.org>
+
+       chown: Fix configure output (regression from 2019-03-23).
+       * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
+       gl_cv_func_chown_follows_symlink variable.
+
 2019-09-08  Bruno Haible  <bruno@clisp.org>
 
        findprog-in: New module.
index b7983250e0f818e4f847bf9e77d6a2d2835edf49..b693686bd97ce141f2a05a5ce284f0871150732b 100644 (file)
@@ -1,4 +1,4 @@
-# serial 32
+# serial 33
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
@@ -80,9 +80,10 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN],
     HAVE_CHOWN=0
   else
     dnl Some old systems treated chown like lchown.
-    if test $gl_cv_func_chown_follows_symlink = no; then
-      REPLACE_CHOWN=1
-    fi
+    case "$gl_cv_func_chown_follows_symlink" in
+      *yes) ;;
+      *) REPLACE_CHOWN=1 ;;
+    esac
 
     dnl Some old systems tried to use uid/gid -1 literally.
     case "$ac_cv_func_chown_works" in