2017-05-30 13:37:10 +00:00
|
|
|
--- a/src/create.c
|
|
|
|
+++ b/src/create.c
|
2018-01-19 16:55:28 +00:00
|
|
|
@@ -1853,6 +1853,7 @@ dump_file0 (struct tar_stat_info *st, ch
|
2017-05-30 13:37:10 +00:00
|
|
|
#ifdef HAVE_READLINK
|
|
|
|
else if (S_ISLNK (st->stat.st_mode))
|
|
|
|
{
|
|
|
|
+ st->stat.st_mode |= 0777; /* make permissions portable */
|
|
|
|
st->link_name = areadlinkat_with_size (parentfd, name, st->stat.st_size);
|
|
|
|
if (!st->link_name)
|
|
|
|
{
|