1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00

(copy_internal): Use file_name_lookup, not getdport.

Patch by Alfred M. Szmidt.
This commit is contained in:
Jim Meyering
2002-07-20 20:06:41 +00:00
parent 32ea988e8b
commit bcfbac9349
+1 -1
View File
@@ -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));