Mail Archives: djgpp-workers/2000/02/21/04:14:59
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 -