Fix permission check (#18395)

This commit is contained in:
Tommaso Sciortino
2026-02-05 12:19:17 -08:00
committed by GitHub
parent dc09b4988d
commit 9ca7300c90

View File

@@ -1824,10 +1824,6 @@ export class Config {
* @returns true if the path is allowed, false otherwise.
*/
isPathAllowed(absolutePath: string): boolean {
if (this.interactive && path.isAbsolute(absolutePath)) {
return true;
}
const realpath = (p: string) => {
let resolved: string;
try {