From: Jim Meyering Date: Sat, 20 Jul 2002 20:06:41 +0000 (+0000) Subject: (copy_internal): Use file_name_lookup, not getdport. X-Git-Tag: TEXTUTILS-2_0_22~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcfbac934972d0e4e7dea8f40302f606715a2580;p=thirdparty%2Fcoreutils.git (copy_internal): Use file_name_lookup, not getdport. Patch by Alfred M. Szmidt. --- diff --git a/src/copy.c b/src/copy.c index ed71e5eb25..99f02868af 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));