delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/02/21/04:14:59

Date: Mon, 21 Feb 2000 09:15:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Mark E." <snowball3 AT bigfoot DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: fileutils mkdir gotcha
In-Reply-To: <200002201458.QAA27471@is.elta.co.il>
Message-ID: <Pine.SUN.3.91.1000221091424.6982A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 20 Feb 2000, Mark E. wrote:

> *** djgpp/src/libc/dos/io/putpath.c.orig	Thu Jun  3 13:27:34 1999
> --- djgpp/src/libc/dos/io/putpath.c	Sun Feb 20 09:56:26 2000
> *************** _put_path2(const char *path, int offset)
> *** 140,147 ****
>           o--;
>         path = p;
>       }
> -     else if (p[5])
> -       path = p + 5;
>     }
>   
>     /* collapse multiple slashes to a single slash */
> --- 140,145 ----
> 
> The deleted code turns '/dev/unrecognized' into 'unrecognized'. Deleting 
> this code lets '/dev/unrecognized' stay as-is just like other
> files/directories.

IMHO, this change is too far-fetched: it changes too many different
cases.  For example, "/dev/lpt1" will be left alone as well.  IIRC,
the removal of "/dev/" was done for a very good reason: without it,
programs would produce file names like "d:/dev/lpt1" which aren't
recognized as devices by some DOS calls.

One possibility is to restrict the special treatment to "/dev/env";
such a change would be more localized.

Alternatively, we could make the change you suggest, but then it will
need to be thoroughly tested in many packages before it could be
deemed safe.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019