Skip to content

Commit

Permalink
Fix dfd parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 committed May 9, 2021
1 parent 1f159d1 commit 6e86067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func UnpackEvent(raw []byte) (*Event, error) {
r := &Event{
Pid: int(nativeEndian.Uint32(raw[0:4])),
Uid: int(nativeEndian.Uint32(raw[4:8])),
DirectoryFd: int(nativeEndian.Uint32(raw[8:12])),
DirectoryFd: int(int32(nativeEndian.Uint32(raw[8:12]))),
ThreadName: util.ParseNulString(raw[12:28]),
Path: util.ParseNulString(raw[28:]),
}
Expand Down

0 comments on commit 6e86067

Please sign in to comment.