Mail Archives: djgpp-workers/2001/09/26/10:25:16
> -----Original Message-----
> From: Eli Zaretskii [mailto:eliz AT is DOT elta DOT co DOT il]
> Sent: Wednesday, September 26, 2001 10:35 AM
> To: sandmann AT clio DOT rice DOT edu
> Cc: djgpp-workers AT delorie DOT com
> Subject: Re: fixpath patch (fixes rm -rf disaster, retains deep
> directory usage)
>
>
> > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
> > Date: Wed, 26 Sep 2001 00:03:45 -0500 (CDT)
> >
> > Here's an alternative patch which also seems to work on
> Win2K. It allows
> > you to use long directories without any problems I've
> observed. It's a
> > quick change to fixpath (which is called a bunch of places)
> to not call
> > getcwd and use truename instead.
>
> We cannot simply replace getcwd with _truename here: _truename returns
> a UNC for directories on networked drives, and some DOS calls on some
> supported systems, notably on plain DOS, don't support UNC's.
>
> _fixpath uses getcwd precisely for this reason.
>
I think we should watch int 21h, ah = 3bh (set current directory) and if the
path is larger than 64 characters then return error
- Raw text -