Skip to content

Commit

Permalink
homework-quota: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c30973)
  • Loading branch information
dtardon authored and keszybz committed May 8, 2024
1 parent 9aeadf5 commit a2e7aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/home/homework-quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a2e7aac

Please sign in to comment.