mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
cb8e5ede19
Refresh patch. Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 lines
347 B
Diff
11 lines
347 B
Diff
--- 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)
|
|
{
|