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

index 7400937e95f10e13ac8c8d8946067b94316a430d..c9516829d8811aefc35ee6e6866ec8bcc10477a7 100644 (file)
@@ -107,7 +107,7 @@ int home_update_quota_auto(UserRecord *h, const char *path) {
 
                 r = btrfs_is_subvol(path);
                 if (r < 0)
-                        return log_error_errno(errno, "Failed to test if %s is a subvolume: %m", path);
+                        return log_error_errno(r, "Failed to test if %s is a subvolume: %m", path);
                 if (r == 0)
                         return log_error_errno(SYNTHETIC_ERRNO(ENOTTY), "Directory %s is not a subvolume, cannot apply quota.", path);