Skip to content

fix: detect processes without path separators#8

Merged
Creationsss merged 1 commit intoCreationsss:devfrom
taep96:main
Mar 23, 2026
Merged

fix: detect processes without path separators#8
Creationsss merged 1 commit intoCreationsss:devfrom
taep96:main

Conversation

@taep96
Copy link
Copy Markdown
Contributor

@taep96 taep96 commented Mar 22, 2026

Same fix as OpenAsar/arrpc#165

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.

@Creationsss
Copy link
Copy Markdown
Owner

dev branch 😭

@Creationsss Creationsss changed the base branch from main to dev March 23, 2026 22:29
@Creationsss Creationsss merged commit 60bdcb3 into Creationsss:dev Mar 23, 2026
2 checks passed
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.

2 participants