]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nologin: Prevent error from su -c
authorStanislav Brabec <sbrabec@suse.cz>
Wed, 9 Oct 2019 23:08:25 +0000 (01:08 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Oct 2019 08:08:03 +0000 (10:08 +0200)
commita174eefb41a2ce8b467bb7e1546953c8bd1223dd
tree0d63ab8bead7a61ad53b3639f1cebfaa97f6641e
parenta72a19865d72481c2dd40110919863121cc644bd
nologin: Prevent error from su -c

"su -c" can pass "-c" to nologin. It causes ugly error:

su -c "echo OK" - man
-nologin: invalid option -- 'c'
Try '-nologin --help' for more information.

Accept -c to prevent this error.

Signed-off-by: Josef Cejka <jcejka@suse.com>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
login-utils/nologin.8
login-utils/nologin.c