diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-20 20:06:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-20 20:06:41 +0000 |
commit | bcfbac934972d0e4e7dea8f40302f606715a2580 (patch) | |
tree | d0a9ed295c13f014a16277ca1b514342949f94b6 | |
parent | 32ea988e8b7d48dcc4171d4bfe80a4d163c5059e (diff) | |
download | coreutils-bcfbac934972d0e4e7dea8f40302f606715a2580.tar.xz |
(copy_internal): Use file_name_lookup, not getdport.
Patch by Alfred M. Szmidt.
-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 ed71e5eb2..99f02868a 100644 --- a/src/copy.c +++ b/src/copy.c @@ -1517,7 +1517,7 @@ copy_internal (const char *src_path, const char *dst_path, #if HAVE_STRUCT_STAT_ST_AUTHOR /* Preserve the st_author field. */ { - file_t file = getdport (dst_path); + file_t file = file_name_lookup (dst_path, 0, 0); if (file_chauthor (file, src_sb.st_author)) error (0, errno, _("failed to preserve authorship for %s"), quote (dst_path)); |