]> git.ipfire.org Git - thirdparty/shadow.git/commit
chsh: Verify that login shell path is absolute
authorSamanta Navarro <ferivoz@riseup.net>
Thu, 18 May 2023 11:58:19 +0000 (11:58 +0000)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 18 May 2023 14:03:41 +0000 (16:03 +0200)
commit7321ceaf69a7028a04056e548d861b291634c2d0
treedcc94db311cb02a743e9c5e4d8b90bb5eca0f15f
parent812f934e77700afedbf5e929b282f29a47b2d9c6
chsh: Verify that login shell path is absolute

The getusershell implementation of musl returns every line within the
/etc/shells file, which even includes comments. Only consider absolute
paths for login shells.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
src/chsh.c