]> git.ipfire.org Git - thirdparty/util-linux.git/commit - login-utils/chsh.c
chsh: split get_shell_list()
authorKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2017 11:15:59 +0000 (13:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2017 11:15:59 +0000 (13:15 +0200)
commit54373fb9b910f5fe64f1d14a6db36437063b4983
tree0c4f4c56a9371b764cc9cc3bb5a08697b7d44384
parentd1818b9e123c7e93dc99cc5e8a528e1ee215fe90
chsh: split get_shell_list()

Let's use two functions is_known_shell() and print_shells() to make
the code more readable and to avoid complex semantic of the original
get_shell_list().

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