Message-ID: <250B3114DA16D511B82C00E0094005F8023FC1A5@MSGWAW11> From: Wojciech Galazka To: "'djgpp-workers AT delorie DOT com'" , sandmann AT clio DOT rice DOT edu Subject: RE: fixpath patch (fixes rm -rf disaster, retains deep directory usage) Date: Wed, 26 Sep 2001 16:23:43 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Reply-To: djgpp-workers AT delorie DOT com > -----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