summaryrefslogtreecommitdiff
path: root/m4/chown.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-12-21 12:10:07 +0000
committerJim Meyering <jim@meyering.net>1997-12-21 12:10:07 +0000
commit726c48d02fd717f755f219c5cbe109004a0b674c (patch)
tree45ff7689762fadcb1febf02d73946534b473528e /m4/chown.m4
parent1af374e6a4a438ea3e386804366c9101f9f8f2a4 (diff)
downloadcoreutils-726c48d02fd717f755f219c5cbe109004a0b674c.tar.xz
Fix reversed types on -1 args to chown.
From Kaveh Ghazi.
Diffstat (limited to 'm4/chown.m4')
-rw-r--r--m4/chown.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/chown.m4 b/m4/chown.m4
index abe78cdaf..2e35bfd57 100644
--- a/m4/chown.m4
+++ b/m4/chown.m4
@@ -1,7 +1,7 @@
#serial 1
dnl From Jim Meyering.
-dnl Determine whether chown accepts arguments of -1 for gid and uid.
+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
@@ -28,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,