]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework-blob: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:50:55 +0000 (13:50 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 12:02:08 +0000 (14:02 +0200)
src/home/homework-blob.c

index 17cb7d6ce3c45b7297e047dad450b20a12adf67b..6b22ab6f24ed143b11244c708174ecaf99ac2685 100644 (file)
@@ -264,7 +264,7 @@ int home_apply_new_blob_dir(UserRecord *h, Hashmap *blobs) {
                  * of the directory. */
                 r = rm_rf_at(base_dfd, h->user_name, REMOVE_PHYSICAL|REMOVE_MISSING_OK);
                 if (r < 0)
-                        return log_error_errno(errno, "Failed to empty out system blob dir: %m");
+                        return log_error_errno(r, "Failed to empty out system blob dir: %m");
                 return 0;
         }