Actions
Bug #441
closed[PATCH] Fallback in proc_open() if SHELL not set in env
ASK QUESTIONS IN Forums:
Description
proc_open() fails if SHELL is not set in the environment. The attached patch creates a fallback to /bin/sh (Unix) or C:\WINNT\system32\cmd.exe (Windows) instead.
-- elvstone
Files
Updated by Anonymous almost 19 years ago
Better to fallback to WINDIR\system32\cmd.exe instead of a hardcoded path. Attaching a new patch. Thanks for the tip Robe. The patch is only tested on Unix since I don't have a Windows machine. Make sure to test before applying.
Best regards,
Aron
-- elvstone
Updated by moo over 18 years ago
"strcat(shell.." is, however buffer overflow, in the proc_open.c.2.diff patch, i'll write one myself.
Updated by Anonymous over 18 years ago
Oops, clumsy me. Anyway you get what I mean ;)
-- elvstone
Updated by moo over 18 years ago
- Status changed from Assigned to Fixed
- Resolution set to fixed
fixed in r1060
Actions
Also available in: Atom