]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setpriv: add --reset-env
authorKarel Zak <kzak@redhat.com>
Wed, 22 Aug 2018 09:43:32 +0000 (11:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Aug 2018 09:43:32 +0000 (11:43 +0200)
commit89f95425746e0371c033260c2bc0ef176eba6a37
treeaab4a1fc2bdd8f9da9c3087b437c32dac46f14a3
parent64d11d6bb054f7d77539b9f18875ab87e98c8452
setpriv: add --reset-env

Clear environment in way like su(1), but PATH is set to hard-coded
defaults and /etc/login.defs is not used at all (I guess we want to
keep setpriv(1) simple).

If you need anything more advanced than use env(1).

Addresses: https://github.com/karelzak/util-linux/issues/325
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setpriv.1
sys-utils/setpriv.c