+2003-03-30 Bruno Haible <bruno@clisp.org>
+
+ * copy-file.c (copy_file_preserving): Don't set owner if the function
+ chown() doesn't exist.
+
2003-03-28 Bruno Haible <bruno@clisp.org>
* copy-file.h: New file, from GNU gettext.
}
#endif
+#if HAVE_CHOWN
/* Preserve the owner and group. */
chown (dest_filename, statbuf.st_uid, statbuf.st_gid);
+#endif
/* Preserve the access permissions. */
chmod (dest_filename, mode);
+2003-03-30 Bruno Haible <bruno@clisp.org>
+
+ * copy-file.m4 (gl_COPY_FILE): Add check for chown().
+
2003-03-28 Bruno Haible <bruno@clisp.org>
* copy-file.m4: New file.
-# copy-file.m4 serial 1
+# copy-file.m4 serial 2
dnl Copyright (C) 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
AC_DEFUN([gl_COPY_FILE],
[
AC_CHECK_HEADERS_ONCE(unistd.h utime.h)
- AC_CHECK_FUNCS(utime utimes)
+ AC_CHECK_FUNCS(chown utime utimes)
])