From: Daan De Meyer Date: Wed, 31 Jul 2024 13:21:17 +0000 (+0200) Subject: Drop EEXIST handling in load_credential_glob() X-Git-Tag: v256.5~1^2~52 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=181ee8b30df9103690ed875b730cf629176fd929;p=systemd%2F.git Drop EEXIST handling in load_credential_glob() Credentials are written to a temporary file and renamed to the destination with renameat() which will replace existing files so EEXIST should not happen so drop the handling for EEXIST. (cherry picked from commit 2c2ed3272b992b6eb13864e49847c943e42be00f) --- diff --git a/src/core/exec-credential.c b/src/core/exec-credential.c index f4cff57848..fcb5df8a37 100644 --- a/src/core/exec-credential.c +++ b/src/core/exec-credential.c @@ -378,8 +378,6 @@ static int load_credential_glob( ownership_ok, data, size, left); - if (r == -EEXIST) - continue; if (r < 0) return r; }