aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 47abf5414eb768f225a50361bee809c283450f6d
parent 130ed66b19b8dc26ed7e41b4e720a30fea202574
Author: xplshn <anto@xplshn.com.ar>
Date:   Thu, 26 Nov 2026 08:45:36 -0300

tar keeps the sticky, setuid and setgid bits

Diffstat:
Mcmd/pseudo/tar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/pseudo/tar.c b/cmd/pseudo/tar.c @@ -421,7 +421,7 @@ archive(const char *path) } } - putoctal(h->mode, (unsigned)st.st_mode & 0777, sizeof(h->mode)); + putoctal(h->mode, (unsigned)st.st_mode & 07777, sizeof(h->mode)); putoctal(h->uid, (unsigned)st.st_uid, sizeof(h->uid)); putoctal(h->gid, (unsigned)st.st_gid, sizeof(h->gid)); putoctal(h->mtime, (unsigned)st.st_mtime, sizeof(h->mtime));