]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: drop unneeded empty_to_root()
authorMike Yuan <me@yhndnzj.com>
Fri, 4 Apr 2025 12:57:36 +0000 (14:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Oct 2025 07:22:07 +0000 (09:22 +0200)
src/kernel-install/kernel-install.c

index c9ea1f157457f6eefd9c8d2b30e2d54d52b181e8..a636a91dd2b9881c07305a755a8c559130fc9ab7 100644 (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;
 }