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)
(cherry picked from commit a2e7aac)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent bb7e9d1 commit 5de929e
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 @@ -113,7 +113,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 5de929e

Please sign in to comment.