summaryrefslogtreecommitdiffstats
path: root/src/nss-resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-02-28 14:57:35 +0100
committerLennart Poettering <lennart@poettering.net>2024-02-28 15:38:00 +0100
commitefb9b3bab2cc54ad585831b9b3733371984862f3 (patch)
tree96e34f6b387a867e3da592e06dabd7c4fd88843a /src/nss-resolve
parentMerge pull request #31444 from bluca/semaphore (diff)
downloadsystemd-efb9b3bab2cc54ad585831b9b3733371984862f3.tar.xz
systemd-efb9b3bab2cc54ad585831b9b3733371984862f3.zip
env-util: rename getenv_bool_secure() → secure_getenv_bool()
The glibc API is behind the wrapper is called "secure_getenv()", hence our wrapper really should keep the order too, otherwise things are just too confusing.
Diffstat (limited to 'src/nss-resolve')
-rw-r--r--src/nss-resolve/nss-resolve.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c
index ce8c064004..3cefb6394c 100644
--- a/src/nss-resolve/nss-resolve.c
+++ b/src/nss-resolve/nss-resolve.c
@@ -202,9 +202,10 @@ static uint64_t query_flag(
const char *name,
const int value,
uint64_t flag) {
+
int r;
- r = getenv_bool_secure(name);
+ r = secure_getenv_bool(name);
if (r >= 0)
return r == value ? flag : 0;
if (r != -ENXIO)