Skip to content

Commit

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

0 comments on commit 9aeadf5

Please sign in to comment.