aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/ldd/exec.go b/ldd/exec.go
index 0c049e70..eec31e47 100644
--- a/ldd/exec.go
+++ b/ldd/exec.go
@@ -16,13 +16,15 @@ func Exec(p string) ([]*Entry, error) {
cmd *exec.Cmd
)
- if b, err := helper.NewBwrap((&bwrap.Config{
- Hostname: "fortify-ldd",
- Chdir: "/",
- NewSession: true,
- DieWithParent: true,
- }).Bind("/", "/").DevTmpfs("/dev"),
- nil, "ldd", func(_, _ int) []string { return []string{p} }); err != nil {
+ if b, err := helper.NewBwrap(
+ (&bwrap.Config{
+ Hostname: "fortify-ldd",
+ Chdir: "/",
+ NewSession: true,
+ DieWithParent: true,
+ }).Bind("/", "/").DevTmpfs("/dev"), "ldd",
+ nil, func(_, _ int) []string { return []string{p} }, nil,
+ ); err != nil {
return nil, err
} else {
cmd = b.Unwrap()