]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/shells: make sure line does not start with '#'
authorKarel Zak <kzak@redhat.com>
Mon, 12 Dec 2022 09:05:04 +0000 (10:05 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Dec 2022 09:05:04 +0000 (10:05 +0100)
commit5099e004b486e7c4f7153abc9843f49c1593fe66
treeab37763017504f6cd94e1dc6a0a43b5502bbceb7
parent938755b9e8eb6845710b2c324c68f9c9278ae76f
lib/shells: make sure line does not start with '#'

It's probably unnecessary, but better safe than sorry. The original
is_restricted_shell() from su(1) uses this check.

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