You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using liblsof on Darwin/MacOS, the name field is not populated for regular files #346
Describe the bug
When running on Darwin/MacOS, lsof_file.name seems to always be NULL for regular files. When running command line lsof, the name field is populated correctly. lsof_file.name seems to be correctly populated on (at least) Linux.
To Reproduce
Steps to reproduce the behavior:
1 Run lsof_gather() against any process with an open regular file.
2. Examine lsof_file.name
Expected behavior
lsof_file.name to be populated
Environment (please complete the following information):
Activity
jiegec commentedon Feb 28, 2026
Nice observation! Will try to fix this very soon.
Add regression test for #346 by adding file name check in LTbasic2
jiegec commentedon Mar 2, 2026
Hi, I have proposed my fix at #348, maybe you can try this. After fixing it on FreeBSD, it can be merged.
neek78 commentedon Mar 2, 2026
I tried it on darwin - it works great so far, and the tests pass. I'll keep testing, but looks good.. Thanks so much!