summaryrefslogtreecommitdiffstats
path: root/src/sysusers
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-02-28 14:59:31 +0100
committerLennart Poettering <lennart@poettering.net>2024-02-28 15:38:00 +0100
commitdbe253aa9dcb26163a9d483e5b6fe2e759d42d5b (patch)
treee9cea368e2624918559b4d95c3037453efbed8ab /src/sysusers
parentenv-util: rename getenv_bool_secure() → secure_getenv_bool() (diff)
downloadsystemd-dbe253aa9dcb26163a9d483e5b6fe2e759d42d5b.tar.xz
systemd-dbe253aa9dcb26163a9d483e5b6fe2e759d42d5b.zip
env-util: also rename getenv_uint64_secure() → secure_getenv_uint64()
As in the previous commit, let's not change the order of the words compared to the underlying glibc API.
Diffstat (limited to 'src/sysusers')
-rw-r--r--src/sysusers/sysusers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 6e28b1cf8f..e443b10211 100644
--- a/src/sysusers/sysusers.c
+++ b/src/sysusers/sysusers.c
@@ -569,7 +569,7 @@ static int write_temporary_passwd(
static usec_t epoch_or_now(void) {
uint64_t epoch;
- if (getenv_uint64_secure("SOURCE_DATE_EPOCH", &epoch) >= 0) {
+ if (secure_getenv_uint64("SOURCE_DATE_EPOCH", &epoch) >= 0) {
if (epoch > UINT64_MAX/USEC_PER_SEC) /* Overflow check */
return USEC_INFINITY;
return (usec_t) epoch * USEC_PER_SEC;