Skip to content

Commit

Permalink
homework-fscrypt: pass the right error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardon committed May 7, 2024
1 parent bc65a5e commit 11bbc1f
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 @@ -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;
Expand Down

0 comments on commit 11bbc1f

Please sign in to comment.