From b2338b9bd163406252028bbb6dee5431d52170a6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 11 Nov 2026 18:50:08 +0900 Subject: cmd/hakurei/testsuite: replace argument for fd test In the Rosa OS environment, 5 ends up left open when the file itself is removed. This causes EINVAL. This change replaces the fd number instead. Signed-off-by: Ophestra --- cmd/hakurei/testsuite/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go index 2c4ff8e3..2a45d545 100644 --- a/cmd/hakurei/testsuite/main.go +++ b/cmd/hakurei/testsuite/main.go @@ -325,7 +325,11 @@ func main() { wg.Go(func() { if _, _, err := testsuite.StartHakurei( ctx, &wg, &cred, dbusEnv, func(cmd *exec.Cmd) { - cmd.ExtraFiles = cmd.ExtraFiles[:len(cmd.ExtraFiles)-1] + cmd.Args[5] = strings.Replace(cmd.Args[5], + "--identifier-fd=5", + "--identifier-fd=32767", + 1, + ) }, func(err error, output string) { defer log.Println("validated bad identifier fd") -- cgit v1.3.1