Skip to content

Commit 1d4690e

Browse files
dtardonbluca
authored andcommitted
homework-quota: pass the right error variable
(cherry picked from commit 2c30973) (cherry picked from commit a2e7aac) (cherry picked from commit 5de929e)
1 parent 11901bc commit 1d4690e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/home/homework-quota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int home_update_quota_auto(UserRecord *h, const char *path) {
113113

114114
r = btrfs_is_subvol(path);
115115
if (r < 0)
116-
return log_error_errno(errno, "Failed to test if %s is a subvolume: %m", path);
116+
return log_error_errno(r, "Failed to test if %s is a subvolume: %m", path);
117117
if (r == 0)
118118
return log_error_errno(SYNTHETIC_ERRNO(ENOTTY), "Directory %s is not a subvolume, cannot apply quota.", path);
119119

0 commit comments

Comments
 (0)