Hello!

#v+
2005-12-05  Andreas Gruenbacher

        * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
        (set_owner, preserve_author): New functions, factored out of copy_reg.
        (copy_reg): Use them.
        (copy_internal): Use them here, too.
#v-

There was a tiny transformation error; please apply the attached patch.


Regards,
 Thomas
2006-07-20  Thomas Schwinge  <[EMAIL PROTECTED]>

        * src/copy.c (set_author): Correctly access SRC_SB's element ST_AUTHOR.

Index: src/copy.c
===================================================================
RCS file: /sources/coreutils/coreutils/src/copy.c,v
retrieving revision 1.201
diff -u -p -r1.201 copy.c
--- src/copy.c  5 Jul 2006 09:08:42 -0000       1.201
+++ src/copy.c  20 Jul 2006 12:46:12 -0000
@@ -221,7 +221,7 @@ set_author (const char *dst_name, int de
     error (0, errno, _("failed to lookup file %s"), quote (dst_name));
   else
     {
-      error_t err = file_chauthor (file, src_sb.st_author);
+      error_t err = file_chauthor (file, src_sb->st_author);
       if (err)
        error (0, err, _("failed to preserve authorship for %s"),
               quote (dst_name));
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to