Repository navigation
Commit 5c6008d
authored
fix(ssh): fix windows openssh agent detection logic (#10954)
On Windows, checking for the existence of the OpenSSH agent named pipe
(`\\.\pipe\openssh-ssh-agent`) can throw an `EBUSY` error if the agent
is running and the pipe is in use. Previously, this error was caught
generically and treated as the pipe not existing, causing auto-detection
to fail even when the agent was active.
This change updates the detection logic to explicitly catch `EBUSY`
errors from `fs.stat` and treat them as a positive signal that the
pipe exists.1 parent 315083d commit 5c6008d
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
| |||
0 commit comments