]> Dogcows Code - chaz/tar/commitdiff
(dump_file0): Apply transform_name to symlink targets.
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Feb 2008 15:46:41 +0000 (15:46 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Feb 2008 15:46:41 +0000 (15:46 +0000)
src/create.c

index de81639e2244f7c89afd0d6e597f77c4624adcc2..768c0eb1227f4bec2d9ee16703ad20b389942391 100644 (file)
@@ -1706,6 +1706,7 @@ dump_file0 (struct tar_stat_info *st, const char *p,
        }
       buffer[size] = '\0';
       assign_string (&st->link_name, buffer);
+      transform_name (&st->link_name);
       if (NAME_FIELD_SIZE - (archive_format == OLDGNU_FORMAT) < size)
        write_long_link (st);
 
@@ -1714,7 +1715,7 @@ dump_file0 (struct tar_stat_info *st, const char *p,
       header = start_header (st);
       if (!header)
        return;
-      tar_copy_str (header->header.linkname, buffer, NAME_FIELD_SIZE);
+      tar_copy_str (header->header.linkname, st->link_name, NAME_FIELD_SIZE);
       header->header.typeflag = SYMTYPE;
       finish_header (st, header, block_ordinal);
       /* nothing more to do to it */
This page took 0.023355 seconds and 4 git commands to generate.