shadow: fix the behavior of su
authorChen Qi <Qi.Chen@windriver.com>
Tue, 22 Jul 2014 02:32:15 +0000 (10:32 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Jul 2014 20:59:14 +0000 (21:59 +0100)
commit0913506b763aaf2c41fc9250cebe27e7dcb2d75b
tree2e6c67db6af72ba65cb1185be7bd2b96896bd5be
parent59a1bb4cc15bad61e5693b58c62097d691b416bc
shadow: fix the behavior of su

In systems where bash is not installed and /bin/sh is provided by
busybox. Commands like `su -l -c '/home/root/test' xuser' would fail
complaining the the 'su' applet could not be found.

This patch references the old version of shadow to keep the behaviour
the way it was in old version so that we would avoid the problem mentioned
above.

(From OE-Core rev: ab0115d1b8a0cb0b25bdb14fd2a3e6c6bb9a44f8)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/shadow/files/0001-su.c-fix-to-exec-command-correctly.patch [new file with mode: 0644]
meta/recipes-extended/shadow/shadow.inc