Skip to content

Fix process detection for executables without path separators#165

Open
taep96 wants to merge 1 commit intoOpenAsar:mainfrom
taep96:main
Open

Fix process detection for executables without path separators#165
taep96 wants to merge 1 commit intoOpenAsar:mainfrom
taep96:main

Conversation

@taep96
Copy link

@taep96 taep96 commented Feb 11, 2026

Fixes detection when /proc/*/cmdline contains just the executable name without path separators.

The loop condition i < splitPath.length never executed when splitPath.length === 1, leaving toCompare empty. Changed to i <= splitPath.length so it runs at least once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant