* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
authorJim Meyering <jim@meyering.net>
Wed, 26 Jul 2006 14:43:00 +0000 (14:43 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 26 Jul 2006 14:43:00 +0000 (14:43 +0000)
Correctly access SRC_SB's element ST_AUTHOR.

ChangeLog
src/copy.c

index c74be13..578acec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-26  Thomas Schwinge  <tschwinge@gnu.org>  (tiny change)
+
+       * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
+       Correctly access SRC_SB's element ST_AUTHOR.
+
 2006-07-26  Jim Meyering  <jim@meyering.net>
 
        * tests/ls/stat-failed: Adapt to match new expected output.
index c958eb6..ac54e48 100644 (file)
@@ -221,7 +221,7 @@ set_author (const char *dst_name, int dest_desc, const struct stat *src_sb)
     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));