Ignore relative paths in PATH in Subprocess.pathSearch()

Used by Utilities.Internal.subprocess() if a bare command is given
This commit is contained in:
Dan Stillman 2024-03-31 05:09:40 -04:00
parent 95f6d2aa72
commit 982d087987

View file

@ -162,6 +162,9 @@ function modify_omni {
# Disable unwanted components
remove_line '(RemoteSettings|services-|telemetry|Telemetry|URLDecorationAnnotationsService)' components/components.manifest
# Ignore relative paths in PATH in Subprocess.pathSearch(), used when bare command is passed to Utilities.Internal.subprocess()
replace_line 'let path = PathUtils.join\(dir, bin\);' 'if (!dir.startsWith("\/")) continue; let path = PathUtils.join(dir, bin);' modules/subprocess/subprocess_unix.sys.mjs
# Remove unwanted files
rm modules/FxAccounts*
# Causes a startup error -- try an empty file or a shim instead?