Uh oh!
There was an error while loading. Please reload this page.
std.process.Child: fix double path normalization in spawnWindows - #24562
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
be3c8b3 to
6019633CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
besides simply being redundant work, the now removed normalize call would cause spawn to errantly fail (BadPath) when passing a relative path which traversed 'above' the current working directory. This case is already handled by leaving normalization to the windows.wToPrefixedFileW call in windowsCreateProcessPathExt
Also check that FileNotFound is consistently returned when the path is missing. The new `run_relative` step will test spawning paths like: child_path: ../84385e7e669db0967d7a42765011dbe0/child missing_child_path: ../84385e7e669db0967d7a42765011dbe0/child_intentionally_missing
6019633 to
0f41063CompareThere was a problem hiding this comment.
Looking good!
For context to those reviewing, the normalizePath calls that are being removed were an artifact of the Windows ChildProcess rework in #13993 coming before #15768 which made the normalizePath calls obsolete.
This PR removes the obsolete normalization and adds tests to check that behavior didn't regress.
Uh oh!
There was an error while loading. Please reload this page.
besides simply being redundant work, the now removed normalize call would cause spawn to errantly fail (BadPath) when passing a relative path which traversed 'above' the current working directory. This case is already handled by leaving normalization to the windows.wToPrefixedFileW call in windowsCreateProcessPathExt