From 2c2ed3272b992b6eb13864e49847c943e42be00f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 31 Jul 2024 15:21:17 +0200 Subject: [PATCH] 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. --- src/core/exec-credential.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/exec-credential.c b/src/core/exec-credential.c index b210850cb1..8731d74666 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; }