Skip to content

Commit 11901bc

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)
1 parent 3a938ce commit 11901bc

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
@@ -212,7 +212,7 @@ static int fscrypt_setup(
212212

213213
r = flistxattr_malloc(setup->root_fd, &xattr_buf);
214214
if (r < 0)
215-
return log_error_errno(errno, "Failed to retrieve xattr list: %m");
215+
return log_error_errno(r, "Failed to retrieve xattr list: %m");
216216

217217
NULSTR_FOREACH(xa, xattr_buf) {
218218
_cleanup_free_ void *salt = NULL, *encrypted = NULL;
@@ -649,7 +649,7 @@ int home_passwd_fscrypt(
649649

650650
r = flistxattr_malloc(setup->root_fd, &xattr_buf);
651651
if (r < 0)
652-
return log_error_errno(errno, "Failed to retrieve xattr list: %m");
652+
return log_error_errno(r, "Failed to retrieve xattr list: %m");
653653

654654
NULSTR_FOREACH(xa, xattr_buf) {
655655
const char *nr;

0 commit comments

Comments
 (0)