1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-06 00:58:29 +03:00

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)
This commit is contained in:
Daan De Meyer 2024-07-31 15:21:17 +02:00 committed by Luca Boccassi
parent f1d4e79eff
commit 181ee8b30d

View File

@ -378,8 +378,6 @@ static int load_credential_glob(
ownership_ok,
data, size,
left);
if (r == -EEXIST)
continue;
if (r < 0)
return r;
}