From 1868f7ab816c0c292da2a4ce8bbf32bf4cfdc737 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sun, 10 Nov 2024 14:24:23 -0700 Subject: [PATCH] Fix up fake tail command --- custom/testing/tail | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom/testing/tail b/custom/testing/tail index ffe1e4a..292d9e0 100755 --- a/custom/testing/tail +++ b/custom/testing/tail @@ -22,7 +22,6 @@ def run_execve(cmd, args=None): with open(cmd, "rb") as fp: os.execve(fp.fileno(), args, os.environ) else: - args = [cmd] + args os.execve(cmd, args, os.environ) @@ -33,7 +32,7 @@ if pid != 1: else: with open("/cmd.sh", "w") as fp: if sys.argv[1:]: - fp.write(f"tail.real", sys.argv[1:]) + fp.write(f"tail.real {' '.join(sys.argv[1:])}") else: fp.write(f"tail.real") run_execve("/usr/lib/systemd/systemd", ["--systemd", "--unit=rescue.target"])