This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: CWD and long paths
According to Corinna Vinschen on 10/13/2007 9:12 AM:
> On Oct 13 13:03, Corinna Vinschen wrote:
>> So, for now we have four options(*)what to do in exec(3) when trying to
>> start a native child process from a long CWD (> MAX_PATH):
>>
>> 1. Return ENAMETOOLONG and don't start the native child.
>>
>> 2. CWD for the native child is set to $SYSTEMROOT.
>>
>> 3. CWD is set to the root of the current drive (either X:\ or
>> \\server\share).
>>
>> 4. CWD is set to the longest leading path component of CWD which still
>> fits into MAX_PATH.
>
> I forgot the fifth option, suggested by Pierre:
>
> 5. Start the native app in the last CWD we were in which was < MAX_PATH.
I would like 1 (if possible), otherwise 3.
--
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net