diff -urp fileutils-4.1.7.orig/configure.ac fileutils-4.1.7-cp/configure.ac --- fileutils-4.1.7.orig/configure.ac Sun Mar 31 08:10:32 2002 +++ fileutils-4.1.7-cp/configure.ac Tue Apr 2 16:10:57 2002 @@ -45,6 +45,8 @@ if test $fu_cv_sys_truncating_statfs = y fi AC_MSG_RESULT($fu_cv_sys_truncating_statfs) +AC_CHECK_HEADERS(hurd.h) + jm_LIB_CHECK AM_GNU_GETTEXT Only in fileutils-4.1.7-cp: obj diff -urp fileutils-4.1.7.orig/src/copy.c fileutils-4.1.7-cp/src/copy.c --- fileutils-4.1.7.orig/src/copy.c Sun Mar 10 03:27:11 2002 +++ fileutils-4.1.7-cp/src/copy.c Tue Apr 2 16:13:42 2002 @@ -26,6 +26,10 @@ #include #include +#if HAVE_HURD_H +# include +#endif + #include "system.h" #include "error.h" #include "backupfile.h" @@ -1504,6 +1508,16 @@ copy_internal (const char *src_path, con } } +#if HAVE_HURD_H + /* Preserve the st_author field. */ + { + file_t file = getdport (dst_path); + if (file_chauthor (file, src_sb.st_author)) + error (0, errno, _("preserving authorship for %s"), quote (dst_path)); + mach_port_deallocate (mach_task_self (), file); + } +#endif + /* Permissions of newly-created regular files were set upon `open' in copy_reg. But don't return early if there were any special bits and we had to run chown, because the chown must have reset those bits. */