This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in cygwin_conv_to_posix_path() caused by period in win32 path


(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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]