diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-07-23 12:01:21 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-07-24 08:11:17 +0000 |
commit | 0c2717afab5d95eeee33ad6e5ed596b99f2cffc2 (patch) | |
tree | 8599304e0b5260600fb9d488ee3b3ade842a4296 /main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch | |
parent | 2c6c4eba9dce40905e7631881f07ccb59b53ce91 (diff) | |
download | aports-0c2717afab5d95eeee33ad6e5ed596b99f2cffc2.tar.bz2 aports-0c2717afab5d95eeee33ad6e5ed596b99f2cffc2.tar.xz |
main/busybox: upgrade to 1.31.0
Notable changes:
* udhcpc: upstream prefers -b over -n now. Since we set -b instead of -n
by default this is not desired as it would not allow users to
overwrite the -b without recompiling busybox. I therefore reverted the
upstream commit introducing this change [0].
[0]: https://git.busybox.net/busybox/commit/?id=87e216294af9eec39c0c1d553555f8a98c15db38
Diffstat (limited to 'main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch')
-rw-r--r-- | main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch b/main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch deleted file mode 100644 index 0bca3b7b51..0000000000 --- a/main/busybox/0001-adduser-prevent-creation-from-invalid-entry-without-.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 8f0f1d6c9315d10dacdb26ff6cc9059a7a565eb3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> -Date: Sat, 12 Jan 2019 00:01:34 +0100 -Subject: [PATCH] adduser: prevent creation from invalid entry without -s - -If -s is not specified adduser uses get_shell_name() to determine the -shell it should use for the newly created user. If SHELL is not set this -function uses getpwnam(3) to determine the shell of the current user and -returns that. - -getpwnam(3) uses static storage and is called again in passwd_study() -overwriting the memory location get_shell_name() returned a pointer to. -Thereby potentially creating an entry with an invalid shell. - -To fix this xstrdup() the return value of get_shell_name(). This -approach is also used by crond, ifupdown and svlogd. ---- - loginutils/adduser.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/loginutils/adduser.c b/loginutils/adduser.c -index b2b5be5b3..7e5a85c33 100644 ---- a/loginutils/adduser.c -+++ b/loginutils/adduser.c -@@ -198,7 +198,7 @@ int adduser_main(int argc UNUSED_PARAM, char **argv) - - pw.pw_gecos = (char *)"Linux User,,,"; - /* We assume that newly created users "inherit" root's shell setting */ -- pw.pw_shell = (char *)get_shell_name(); -+ pw.pw_shell = xstrdup(get_shell_name()); - pw.pw_dir = NULL; - - opts = getopt32long(argv, "^" |