bug in cygwin_conv_to_posix_path() caused by period in win32 path
Matthew Woehlke
mw_triad@users.sourceforge.net
Fri Jul 13 14:20:00 GMT 2007
(nonstandard quoting reformatted)
André Bleau wrote:
> Corinna Vinschen wrote:
>> (*) and, funny enough, there's no API call in Win32 to return a DCWD.
>> There's just a call GetCurrentDirectory() which returns *the* CWD.
>> Which makes sense, given that the RTL_USER_PROCESS_PARAMETERS can only
>> store one CWD per process.
>
> Well, this is not surprising, as there is no such thing as a DCWD in
> Windows. It is strictly a cmd thing. Try this: start 2 instances of cmd
> in parallel:
> [snip]
> The "DCWD" is clearly independant for each cmd.
Well... duh. getcwd() is process-independent, why shouldn't dcwd be
also? Nor should this be surprising since dcwd is "implemented" using
environment variables; the environment is also per-process.
--
Matthew
.rorrim a ot pu rotinom ruoy dloh ,egassem siht daer oT
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list