mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
homework-fscrypt: pass the right error variable
This commit is contained in:
parent
bc65a5e37d
commit
11bbc1f8b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user