Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
27
tools/tar/patches/100-symlink-force-root-name.patch
Normal file
27
tools/tar/patches/100-symlink-force-root-name.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
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 <nbd@nbd.name>
|
||||
---
|
||||
--- a/src/create.c
|
||||
+++ b/src/create.c
|
||||
@@ -544,17 +544,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);
|
||||
Reference in New Issue
Block a user