.
[gnulib.git] / m4 / chown.m4
index 59b4de7..4ae19a9 100644 (file)
@@ -1,6 +1,9 @@
-#serial 1
+#serial 2
 
 dnl From Jim Meyering.
+dnl Determine whether chown accepts arguments of -1 for uid and gid.
+dnl If it doesn't, arrange to use the replacement function.
+dnl
 dnl If you use this macro in a package, you should
 dnl add the following two lines to acconfig.h:
 dnl  /* Define to rpl_chown if the replacement function should be used.  */
@@ -25,7 +28,7 @@ AC_DEFUN(jm_FUNC_CHOWN,
       char *f = "conftestchown";
       if (creat (f, 0600) < 0)
         exit (1);
-      exit (chown (f, (gid_t) -1, (uid_t) -1) == -1 ? 1 : 0);
+      exit (chown (f, (uid_t) -1, (gid_t) -1) == -1 ? 1 : 0);
     }
              ],
             jm_cv_func_working_chown=yes,