mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
kernel-install: drop unneeded empty_to_root()
This commit is contained in:
committed by
Lennart Poettering
parent
dfb46b906e
commit
6870f78dcd
@@ -222,9 +222,9 @@ static int context_open_root(Context *c) {
|
||||
if (r > 0)
|
||||
return 0;
|
||||
|
||||
c->rfd = open(empty_to_root(arg_root), O_CLOEXEC | O_DIRECTORY | O_PATH);
|
||||
c->rfd = open(arg_root, O_CLOEXEC | O_DIRECTORY | O_PATH);
|
||||
if (c->rfd < 0)
|
||||
return log_error_errno(errno, "Failed to open root directory '%s': %m", empty_to_root(arg_root));
|
||||
return log_error_errno(errno, "Failed to open root directory '%s': %m", arg_root);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user