adduser-no-setgid.patch (430B)
1 diff --git a/loginutils/adduser.c b/loginutils/adduser.c 2 index 850c810..68db3cb 100644 3 --- a/loginutils/adduser.c 4 +++ b/loginutils/adduser.c 5 @@ -299,7 +299,6 @@ int adduser_main(int argc UNUSED_PARAM, char **argv) 6 } 7 if ((mkdir_err != 0 && errno != EEXIST) 8 || chown(pw.pw_dir, pw.pw_uid, pw.pw_gid) != 0 9 - || chmod(pw.pw_dir, 02755) != 0 /* set setgid bit on homedir */ 10 ) { 11 bb_simple_perror_msg(pw.pw_dir); 12 }