* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:

Correctly access SRC_SB's element ST_AUTHOR.
This commit is contained in:
Jim Meyering committed 2006-07-26 14:43:00 +00:00
1 parent 2f418ef97d
commit 256d18e81b
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -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.
+1 -1
View 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));