summaryrefslogtreecommitdiffstats
path: root/src/shared/ask-password-api.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-01 12:45:29 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-02 23:20:57 +0100
commit01d138b990907ab202887a2df5eccc3a58f99ebf (patch)
tree65ea7c8b291968a84b626ced30857a5935a4e9ba /src/shared/ask-password-api.c
parentask-password: Use default timeout if SYSTEMD_ASK_PASSWORD_KEYRING_TIMEOUT_SEC... (diff)
downloadsystemd-01d138b990907ab202887a2df5eccc3a58f99ebf.tar.xz
systemd-01d138b990907ab202887a2df5eccc3a58f99ebf.zip
ask-password: Drop "default" for SYSTEMD_ASK_PASSWORD_KEYRING_TIMEOUT_SEC
Users can simply unset the environment variable to achieve the same effect.
Diffstat (limited to '')
-rw-r--r--src/shared/ask-password-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c
index aa45468402..eba647aaef 100644
--- a/src/shared/ask-password-api.c
+++ b/src/shared/ask-password-api.c
@@ -123,7 +123,7 @@ static usec_t keyring_cache_timeout(void) {
return saved_timeout;
const char *e = secure_getenv("SYSTEMD_ASK_PASSWORD_KEYRING_TIMEOUT_SEC");
- if (e && !streq(e, "default")) {
+ if (e) {
r = parse_sec(e, &saved_timeout);
if (r < 0)
log_debug_errno(r, "Invalid value in $SYSTEMD_ASK_PASSWORD_KEYRING_TIMEOUT_SEC, ignoring: %s", e);