Skip to content

Commit

Permalink
Merge pull request #35 from aivarasbaranauskas/main
Browse files Browse the repository at this point in the history
Add pid into fname format
  • Loading branch information
Amy Tobey authored Jan 24, 2023
2 parents 7d31691 + 4f449a6 commit 22134e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mnt_ns_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func SwitchMountNs(pid int) {
}

func getMountNs(pid int) int {
fname := fmt.Sprintf("/proc/%d/ns/mnt")
fname := fmt.Sprintf("/proc/%d/ns/mnt", pid)
nss, err := os.Readlink(fname)

// probably permission denied or namespaces not compiled into the kernel
Expand Down

0 comments on commit 22134e0

Please sign in to comment.