]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: use const qualifier for username from PAM or struct passwd [-Wcast-qual]
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 10:21:33 +0000 (12:21 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 10:21:33 +0000 (12:21 +0200)
commit088d487612091c121bf0d4c3981186993517f95c
tree0db02c415e1cd029a2868df3fa51b2e280ade94e
parent9c566fce79124813aee606754a64426071792f1c
login: use const qualifier for username from PAM or struct passwd [-Wcast-qual]

It seems more robust to use 'const' qualifier for username if this
variable points to external resources like PAM or struct passwd. The
patch introduces new variable cmd_username for username specified on
login(1) command line.

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