mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
homework: fix incorrect error variable use
This commit is contained in:
committed by
Yu Watanabe
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user