Hi Robert,

Thanks for reporting. I have installed the attached patch.

Regards,
Sergey

>From 1f997adeea0972965ed5d1b59a25ffc5b2607239 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <g...@gnu.org>
Date: Sat, 30 Sep 2017 10:04:02 +0300
Subject: [PATCH] Fix the effect of --transform over hard link targets without
 the --absolute-names

* src/create.c (file_count_links): Apply safer_name_suffix to the
hard link name prior to transforming it.
---
 src/create.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/create.c b/src/create.c
index bb720f7..35bcf5b 100644
--- a/src/create.c
+++ b/src/create.c
@@ -1534,7 +1534,8 @@ file_count_links (struct tar_stat_info *st)
       char *linkname = NULL;
       struct link *lp;

-      assign_string (&linkname, st->orig_file_name);
+      assign_string (&linkname, safer_name_suffix (st->orig_file_name, true,
+						   absolute_names_option));
       transform_name (&linkname, XFORM_LINK);

       lp = xmalloc (offsetof (struct link, name)
--
1.8.4

Reply via email to