1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

homework-quota: pass the right error variable

(cherry picked from commit 2c30973f0bb538a7ed2d19e8c019fcb7deb882a3)
(cherry picked from commit a2e7aac103565ce931fbcb4ea86e1df5943d7329)
(cherry picked from commit 5de929e6ffe57af38470f50584c17a21ef95ac20)
This commit is contained in:
David Tardon 2024-05-07 13:54:21 +02:00 committed by Luca Boccassi
parent 11901bc237
commit 1d4690e9d3

View File

@ -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);