From 0806e7e3f7c41d8d62464bd7e9e6c23c28bde35f Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 12 Oct 2025 14:04:40 +0800 Subject: [PATCH] packages.info: fix --- packages/info/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/info/src/main.cpp b/packages/info/src/main.cpp index 0a82bd0d..ad946307 100644 --- a/packages/info/src/main.cpp +++ b/packages/info/src/main.cpp @@ -154,8 +154,11 @@ int main() if (context == "epilog_slurmctld" && !output_file.empty()) { auto text = "\n--------------------\n{}\n--------------------\n"_f(info); - biu::exec<{.SearchPath = true, .Stdin = biu::IoType::String}> - ({.Program = "tee", .Args = { "-a", output_file }, .Stdin = text}, switch_user(uid, gid)); + biu::exec<{.Stdin = biu::IoType::String, .Stdout = biu::IoType::Close}> + ( + {.Program = "/run/current-system/sw/bin/tee", .Args = { "-a", output_file }, .Stdin = text}, + switch_user(uid, gid) + ); } }); }