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: v257-rc1~789^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2ed3272b992b6eb13864e49847c943e42be00f;p=thirdparty%2Fsystemd.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. --- diff --git a/src/core/exec-credential.c b/src/core/exec-credential.c index b210850cb14..8731d74666b 100644 --- a/src/core/exec-credential.c +++ b/src/core/exec-credential.c @@ -442,8 +442,6 @@ static int load_credential_glob( ownership_ok, data, size, left); - if (r == -EEXIST) - continue; if (r < 0) return r; }