aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/stub.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-14 18:13:06 +0900
committerOphestra <cat@gensokyo.uk>2025-02-14 18:13:06 +0900
commitace97952ccd08afe74737659794f43233d28596e (patch)
tree58fd7ec1671d08af44145cba73fae15d83dbb350 /helper/stub.go
parent73146ea7fa9ace10e14d2ba693e3cddda64183c8 (diff)
helper/bwrap: merge Args and FDArgs
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/stub.go')
-rw-r--r--helper/stub.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/helper/stub.go b/helper/stub.go
index 830505c2..58913022 100644
--- a/helper/stub.go
+++ b/helper/stub.go
@@ -155,9 +155,8 @@ func bwrapStub() {
DieWithParent: true,
AsInit: true,
}
- args := sc.Args()
- sc.FDArgs(nil, &args, new(proc.ExtraFilesPre), new([]proc.File))
- if _, err := MustNewCheckedArgs(args).WriteTo(want); err != nil {
+ if _, err := MustNewCheckedArgs(sc.Args(nil, new(proc.ExtraFilesPre), new([]proc.File))).
+ WriteTo(want); err != nil {
panic("cannot read want: " + err.Error())
}