X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=tools%2Ftar%2Fpatches%2F110-symlink-force-permissions.patch;fp=tools%2Ftar%2Fpatches%2F110-symlink-force-permissions.patch;h=83dbda6ec5bdf507d8536aae8ad284929b9f2d0e;hb=e25cedd0b5621dc02e47eea674006578ac062c9f;hp=0000000000000000000000000000000000000000;hpb=6173f6d8f11961709eabfc871f40905ebbc2d274;p=openwrt%2Fstaging%2Fwigyori.git 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 0000000000..83dbda6ec5 --- /dev/null +++ b/tools/tar/patches/110-symlink-force-permissions.patch @@ -0,0 +1,10 @@ +--- a/src/create.c ++++ b/src/create.c +@@ -1851,6 +1851,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) + {