summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@cn.fujitsu.com>2020-02-21 02:09:15 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-21 17:48:09 +0000
commit4e51659ff4eeb59349a931e7844f25a55c63f03e (patch)
treed69e3aae6012c4b6054cef9a2736c595f783e03b /meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch
parentaf2215bffc620d78ad690f63b1218e8b2306c495 (diff)
downloadpoky-4e51659ff4eeb59349a931e7844f25a55c63f03e.tar.gz
shadow: upgrade 4.8 -> 4.8.1
0001-Do-not-check-for-validity-of-shell-executable.patch CVE-2019-19882.patch Removed since they are included in 4.8.1. (From OE-Core rev: de9cceb13e264434eb0b8393c3b0c0217b8d505e) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch')
-rw-r--r--meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch b/meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch
deleted file mode 100644
index 2d15ff0673..0000000000
--- a/meta/recipes-extended/shadow/files/0001-Do-not-check-for-validity-of-shell-executable.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 0d0aded7307a9f4ee0d299951512acd18b3e029e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 4 Dec 2019 19:28:48 +0100
4Subject: [PATCH] Do not check for validity of shell executable.
5
6This kind of check fails when building a rootfs.
7
8Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 src/useradd.c | 5 +----
12 1 file changed, 1 insertion(+), 4 deletions(-)
13
14diff --git a/src/useradd.c b/src/useradd.c
15index 4af0f7c..898fe02 100644
16--- a/src/useradd.c
17+++ b/src/useradd.c
18@@ -1328,10 +1328,7 @@ static void process_flags (int argc, char **argv)
19 if ( ( !VALID (optarg) )
20 || ( ('\0' != optarg[0])
21 && ('/' != optarg[0])
22- && ('*' != optarg[0]) )
23- || (stat(optarg, &st) != 0)
24- || (S_ISDIR(st.st_mode))
25- || (access(optarg, X_OK) != 0)) {
26+ && ('*' != optarg[0]) )) {
27 fprintf (stderr,
28 _("%s: invalid shell '%s'\n"),
29 Prog, optarg);