aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tar/patches/110-symlink-force-permissions.patch
blob: 4a80de6ef09f1f3bf905dd3e609d632e93c3d759 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/src/create.c
+++ b/src/create.c
@@ -1844,6 +1844,7 @@ dump_file0 (struct tar_stat_info *st, ch
 #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)
 	{