]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: restore signals after failed exec() only
authorKarel Zak <kzak@redhat.com>
Thu, 16 Aug 2018 14:16:40 +0000 (16:16 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 16 Aug 2018 14:16:40 +0000 (16:16 +0200)
commita8224e8e7e412470e2fe37d5060224ed98bf8284
treec502d33dfe31ec05343a090d3d4ff5f0263cbf52
parentf9915d6db350d7633aecb1ed2ba764ce4fda6fd6
sulogin: restore signals after failed exec() only

* removes unnecessary variable

* the current code restores signals always when shell has not been
  executed -- this is correct as function sushell() modify signal
  mask, but in all another cases we do not need touch the mask.
  Especially when we ask for the  password in endless while() loop...

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c