From: David Tardon Date: Tue, 7 May 2024 11:54:21 +0000 (+0200) Subject: homework-quota: pass the right error variable X-Git-Tag: v256-rc2~83^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c30973f0bb538a7ed2d19e8c019fcb7deb882a3;p=thirdparty%2Fsystemd.git homework-quota: pass the right error variable --- diff --git a/src/home/homework-quota.c b/src/home/homework-quota.c index 7400937e95f..c9516829d88 100644 --- a/src/home/homework-quota.c +++ b/src/home/homework-quota.c @@ -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);