]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_internal): Use file_name_lookup, not getdport.
authorJim Meyering <jim@meyering.net>
Sat, 20 Jul 2002 20:06:41 +0000 (20:06 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Jul 2002 20:06:41 +0000 (20:06 +0000)
Patch by Alfred M. Szmidt.

src/copy.c

index ed71e5eb2591f25bb9999672607a11287b395227..99f02868afb7bae09af55f3d7db67b0667ecb709 100644 (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));