From 256d18e81bbd30bf1aa037feb231241cb00cbbe6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 26 Jul 2006 14:43:00 +0000 Subject: * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]: Correctly access SRC_SB's element ST_AUTHOR. --- ChangeLog | 5 +++++ src/copy.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c74be133c..578acecbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-26 Thomas Schwinge (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 * tests/ls/stat-failed: Adapt to match new expected output. diff --git a/src/copy.c b/src/copy.c index c958eb687..ac54e48a1 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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)); -- cgit v1.2.3-70-g09d2