Repository navigation
Commit aed23c0
fix: avoid empty PATH segment when PATH is unset
When `basePath` is empty, `${binDir}${sep}${basePath}` produces a trailing
separator that makes cwd searchable on POSIX — a subtle security risk.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 5163c82 commit aed23c0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments