From: David Tardon Date: Tue, 7 May 2024 11:49:31 +0000 (+0200) Subject: homework-fscrypt: pass the right error variable X-Git-Tag: v256-rc2~83^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11bbc1f8b8e367019f1e1e1fece3c1cade6cb1c3;p=thirdparty%2Fsystemd.git homework-fscrypt: pass the right error variable --- diff --git a/src/home/homework-fscrypt.c b/src/home/homework-fscrypt.c index 781fe01f9cd..46a77568738 100644 --- a/src/home/homework-fscrypt.c +++ b/src/home/homework-fscrypt.c @@ -212,7 +212,7 @@ static int fscrypt_setup( r = flistxattr_malloc(setup->root_fd, &xattr_buf); if (r < 0) - return log_error_errno(errno, "Failed to retrieve xattr list: %m"); + return log_error_errno(r, "Failed to retrieve xattr list: %m"); NULSTR_FOREACH(xa, xattr_buf) { _cleanup_free_ void *salt = NULL, *encrypted = NULL; @@ -635,7 +635,7 @@ int home_passwd_fscrypt( r = flistxattr_malloc(setup->root_fd, &xattr_buf); if (r < 0) - return log_error_errno(errno, "Failed to retrieve xattr list: %m"); + return log_error_errno(r, "Failed to retrieve xattr list: %m"); NULSTR_FOREACH(xa, xattr_buf) { const char *nr;