diff options
author | Jim Meyering <jim@meyering.net> | 2006-07-26 14:43:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-07-26 14:43:00 +0000 |
commit | 256d18e81bbd30bf1aa037feb231241cb00cbbe6 (patch) | |
tree | 15534d99840a0ae7321101a6184a7505766fcdac /src/copy.c | |
parent | 2f418ef97df8b0342395e4a2d0d2f9f24a90f653 (diff) | |
download | coreutils-256d18e81bbd30bf1aa037feb231241cb00cbbe6.tar.xz |
* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Correctly access SRC_SB's element ST_AUTHOR.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |