From: Mike Yuan Date: Fri, 4 Apr 2025 12:57:36 +0000 (+0200) Subject: kernel-install: drop unneeded empty_to_root() X-Git-Tag: v259-rc1~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6870f78dcd7de183e2d1cfc5ed3911a005609d03;p=thirdparty%2Fsystemd.git kernel-install: drop unneeded empty_to_root() --- diff --git a/src/kernel-install/kernel-install.c b/src/kernel-install/kernel-install.c index c9ea1f15745..a636a91dd2b 100644 --- a/src/kernel-install/kernel-install.c +++ b/src/kernel-install/kernel-install.c @@ -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; }