diff options
Diffstat (limited to 'tools/tar/patches/110-symlink-force-permissions.patch')
| -rw-r--r-- | tools/tar/patches/110-symlink-force-permissions.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/tar/patches/110-symlink-force-permissions.patch b/tools/tar/patches/110-symlink-force-permissions.patch new file mode 100644 index 00000000000..6fb799bc0a3 --- /dev/null +++ b/tools/tar/patches/110-symlink-force-permissions.patch @@ -0,0 +1,10 @@ +--- a/src/create.c ++++ b/src/create.c +@@ -1853,6 +1853,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) + { |
