* m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs of -1.
+2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
+
+ * chown.c (rpl_chown): Return -1 on failure.
+
2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
* canonicalize.c: Include canonicalize.h first, to test interface.
/* provide consistent interface to chown for systems that don't interpret
an ID of -1 as meaning `don't change the corresponding ID'.
- Copyright (C) 1997, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* Stat file to get id(s) that should remain unchanged. */
if (stat (file, &file_stats))
- return 1;
+ return -1;
if (gid == (gid_t) -1)
gid = file_stats.st_gid;
+2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
+
+ * chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
+ of -1.
+
2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
* canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
-#serial 12
+#serial 13
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
AC_REQUIRE([AC_FUNC_CHOWN])
AC_REQUIRE([gl_FUNC_CHOWN_FOLLOWS_SYMLINK])
- if test $ac_cv_func_chown_works = yes; then
+ if test $ac_cv_func_chown_works = no; then
AC_DEFINE(CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE, 1,
[Define if chown is not POSIX compliant regarding IDs of -1.])
fi