Skip to content

Commit

Permalink
fix: proc discovery wrong dir concatination (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir committed Feb 26, 2024
1 parent e85a7b1 commit 737c9a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions procdiscovery/pkg/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ func GetPidDetails(pid int) Details {
}

func getPidDetails(pid int, pidStr string) Details {
procDirName := path.Join("/proc", pidStr)
exeName := getExecName(procDirName)
cmdLine := getCommandLine(procDirName)
exeName := getExecName(pidStr)
cmdLine := getCommandLine(pidStr)

return Details{
ProcessID: pid,
Expand Down

0 comments on commit 737c9a8

Please sign in to comment.