-
-
Notifications
You must be signed in to change notification settings - Fork 105
Update Process.php #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Stop any registry based autoexec commands from executing when shelling. Running Windows CMD as Administrator puts you in C:\windows\system32. If you have a registry entry of ... ``` Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "AutoRun"="@cd C:\\" ``` Causes all sorts of issues without the ```/D``` option. From ```CMD /?``` ``` /D Disable execution of AutoRun commands from registry If /D was NOT specified on the command line, then when CMD.EXE starts, it looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if either or both are present, they are executed first. HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun and/or HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun ```
Relates to/causes composer/composer#4427 |
should be applied in the 2.3 branch when merging, as this is a bugfix. |
@rquadling this repo is the read-only subtree split of Symfony. Can you reopen a PR on the symfony/symfony repo instead (and on the 2.3 branch directly) ? |
OK. |
Stop autoruns when shelling on Windows. Original PR was on symfony/process#9 (comment).
@rquadling please close this PR in favor of the symfony one (I cannot do it for you as the core team does not have collaborator access on read-only repo as they are not meant to change) |
Closing in favour of PR on main project. |
…adling) This PR was merged into the 2.3 branch. Discussion ---------- [Process] Stopped Autoruns when shelling on windows | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | Stop autoruns when shelling on Windows. Original PR was on symfony/process#9 (comment). Commits ------- bca6771 Update Process.php
Stop autoruns when shelling on Windows. Original PR was on #9 (comment).
Stop any registry based autoexec commands from executing when shelling.
Running Windows CMD as Administrator puts you in C:\windows\system32.
If you have a registry entry of ...
Causes all sorts of issues without the
/D
option.From
CMD /?