Force root/root as names for uid0/gid0 instead of using the system names. This helps make packed download tarballs more reproducible Signed-off-by: Felix Fietkau --- --- a/src/create.c +++ b/src/create.c @@ -543,17 +543,8 @@ write_gnu_long_link (struct tar_stat_inf union block *header; header = start_private_header ("././@LongLink", size, 0); - if (! numeric_owner_option) - { - static char *uname, *gname; - if (!uname) - { - uid_to_uname (0, &uname); - gid_to_gname (0, &gname); - } - UNAME_TO_CHARS (uname, header->header.uname); - GNAME_TO_CHARS (gname, header->header.gname); - } + UNAME_TO_CHARS ("root", header->header.uname); + GNAME_TO_CHARS ("root", header->header.gname); strcpy (header->buffer + offsetof (struct posix_header, magic), OLDGNU_MAGIC); d' value='b18a1d217ba9a6516c195339e9f4dde3e0a7f3ce'/> upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/Makefile
blob: e7e76a5bebf24cb81f73d383669cc127604448fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25