]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Drop EEXIST handling in load_credential_glob()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 13:21:17 +0000 (15:21 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 13:23:45 +0000 (15:23 +0200)
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

index b210850cb146f9fc52aee2d95d38a60c1816d774..8731d74666b9156e256e3acbfc6e22d86105d8e0 100644 (file)
@@ -442,8 +442,6 @@ static int load_credential_glob(
                                         ownership_ok,
                                         data, size,
                                         left);
-                        if (r == -EEXIST)
-                                continue;
                         if (r < 0)
                                 return r;
                 }