]> git.ipfire.org Git - thirdparty/util-linux.git/commit
su-common.c: prefer /etc/default/su over login.defs
authorStanislav Brabec <sbrabec@suse.cz>
Thu, 10 Jan 2019 00:28:53 +0000 (01:28 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 10 Jan 2019 11:26:38 +0000 (12:26 +0100)
commit15a191f6d30dfe202a080a3d90968b63d695a29f
tree68ba70786c1126531ffbfb03bbc17759559fec54
parente6effcac61152880451da25142cf93931834ffa9
su-common.c: prefer /etc/default/su over login.defs

su(1) documentation says:
       /etc/default/su  command specific logindef config file
       /etc/login.defs  global logindef config file

It indirectly indicates that /etc/default/su should take precedence
over /etc/login.defs.

But the reverse is true. It is not possible to define ENV_PATH in
/etc/login.defs and then make su specific customization in
/etc/default/su. We need to change read order to match the documented
behavior.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
login-utils/su-common.c