aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/stub.go
diff options
context:
space:
mode:
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())
}