kernel-install: drop unneeded empty_to_root()

This commit is contained in:
Mike Yuan
2025-04-04 14:57:36 +02:00
committed by Lennart Poettering
parent dfb46b906e
commit 6870f78dcd

View File

@@ -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;
}