mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
homework: fix incorrect error variable use
This commit is contained in:
parent
3780f3993f
commit
82fb0911fc
@ -1188,7 +1188,7 @@ int home_prepare_luks(
|
||||
|
||||
root_fd = open(user_record_home_directory(h), O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
|
||||
if (root_fd < 0) {
|
||||
r = log_error_errno(r, "Failed to open home directory: %m");
|
||||
r = log_error_errno(errno, "Failed to open home directory: %m");
|
||||
goto fail;
|
||||
}
|
||||
} else {
|
||||
@ -1279,7 +1279,7 @@ int home_prepare_luks(
|
||||
|
||||
root_fd = open(subdir, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
|
||||
if (root_fd < 0) {
|
||||
r = log_error_errno(r, "Failed to open home directory: %m");
|
||||
r = log_error_errno(errno, "Failed to open home directory: %m");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user