tencrocs / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

CGI on Windows needs to inherit some of the parent environment variables #310

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a CGI executable that calls the WIN32 API SHGetFolderPath() for 
CSIDL_COMMON_APPDATA
2.
3.

What is the expected output? What do you see instead?
WIN32 API SHGetFolderPath() should return path to CSIDL_COMMON_APPDATA
Returns INVALID_PATH error. This is because SystemDrive environment variable is 
not set. This is really a Microsoft problem but it needs
to be addressed as a workaround.

What version of the product are you using? On what operating system?
Latest, Windows

Please provide any additional information below.
In "prepare_cgi_environment", inherit the "SystemDrive" environment for child 
process from the parent.

Original issue reported on code.google.com by frazer.hodge on 17 Jan 2012 at 9:05

GoogleCodeExporter commented 8 years ago

Original comment by valenok on 18 Jan 2012 at 9:21

GoogleCodeExporter commented 8 years ago
Submitted 
http://code.google.com/p/mongoose/source/detail?r=95ba0c4a86a3318153fcc9a0944268
67ddd4be6c, thank you

Original comment by valenok on 5 Feb 2012 at 1:05