ash: align --login code with dash
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 31 Jul 2017 17:43:47 +0000 (19:43 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 31 Jul 2017 17:43:47 +0000 (19:43 +0200)
commitec05df13b0f3bc69074909f078f981f417d95c89
tree3854fd1fc3c1f1c1855362487734b41cd7aad5d0
parent78b1b1b07ac2784f67bc65bb1d86cc2559a12446
ash: align --login code with dash

Upstream commit:

    Date: Sun, 13 Jul 2008 22:34:50 +0800
    [OPTIONS] Added support for -l

    This patch adds support for the -l option (login shell) as required
    by the LSB.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
It's a bit bigger, but gets rid of one global variable

function                                             old     new   delta
options                                              554     576     +22

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c