]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: allow safe_getenv to work for non-root users
authorMike Gilbert <floppym@gentoo.org>
Tue, 26 Apr 2022 17:58:12 +0000 (13:58 -0400)
committerMike Gilbert <floppym@gentoo.org>
Tue, 26 Apr 2022 18:04:24 +0000 (14:04 -0400)
commit16a2e0603f15c4a8f4517264930c7bdea5885bae
tree826d873a8737b9f43e3c121e505a1203bf80d3bf
parent9c01f798f491a59bb1124776f24d983972491382
lib: allow safe_getenv to work for non-root users

This allows users to override settings like BLKID_FILE, as is done in
the e2fsprogs test suite.

Bug: https://bugs.gentoo.org/839825
Fixes: 035507c84b53bceb143d0923e65916cbf90979c7
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
lib/env.c