aboutsummaryrefslogtreecommitdiff
path: root/core/busybox/patches/adduser-no-setgid.patch
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-04-23 00:35:57 +0300
committerCem Keylan <cem@ckyln.com>2020-04-23 00:35:57 +0300
commit4d00567bf269b7e5cd2bc53b45c9282a726eaaa1 (patch)
tree9653616716f9add193e2c0399e378dd99983506c /core/busybox/patches/adduser-no-setgid.patch
parent6685001a647c8810802c4fdab3279909a7d58ef1 (diff)
downloadrepository-4d00567bf269b7e5cd2bc53b45c9282a726eaaa1.tar.gz
busybox: apply patches
Diffstat (limited to 'core/busybox/patches/adduser-no-setgid.patch')
-rw-r--r--core/busybox/patches/adduser-no-setgid.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/busybox/patches/adduser-no-setgid.patch b/core/busybox/patches/adduser-no-setgid.patch
new file mode 100644
index 00000000..613c2adb
--- /dev/null
+++ b/core/busybox/patches/adduser-no-setgid.patch
@@ -0,0 +1,12 @@
+diff --git a/loginutils/adduser.c b/loginutils/adduser.c
+index 850c810..68db3cb 100644
+--- a/loginutils/adduser.c
++++ b/loginutils/adduser.c
+@@ -299,7 +299,6 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
+ }
+ if ((mkdir_err != 0 && errno != EEXIST)
+ || chown(pw.pw_dir, pw.pw_uid, pw.pw_gid) != 0
+- || chmod(pw.pw_dir, 02755) != 0 /* set setgid bit on homedir */
+ ) {
+ bb_simple_perror_msg(pw.pw_dir);
+ }