Skip to content

Commit acf59de

Browse files
dtardonbluca
authored andcommitted
homework-fscrypt: pass the right error variable
(cherry picked from commit 11bbc1f) (cherry picked from commit 9aeadf5) (cherry picked from commit bb7e9d1) (cherry picked from commit 11901bc)
1 parent 0d548ad commit acf59de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/home/homework-fscrypt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int fscrypt_setup(
224224

225225
r = flistxattr_malloc(setup->root_fd, &xattr_buf);
226226
if (r < 0)
227-
return log_error_errno(errno, "Failed to retrieve xattr list: %m");
227+
return log_error_errno(r, "Failed to retrieve xattr list: %m");
228228

229229
NULSTR_FOREACH(xa, xattr_buf) {
230230
_cleanup_free_ void *salt = NULL, *encrypted = NULL;
@@ -672,7 +672,7 @@ int home_passwd_fscrypt(
672672

673673
r = flistxattr_malloc(setup->root_fd, &xattr_buf);
674674
if (r < 0)
675-
return log_error_errno(errno, "Failed to retrieve xattr list: %m");
675+
return log_error_errno(r, "Failed to retrieve xattr list: %m");
676676

677677
NULSTR_FOREACH(xa, xattr_buf) {
678678
const char *nr;

0 commit comments

Comments
 (0)