Mail Archives: djgpp-workers/2000/02/20/10:16:28
> Or,
> better yet, make sure /dev/env without anything else gets treated as a
> normal file/directory, i.e. in this case, /dev/env will actually be
> created.
>
Here's the patch I had in mind for putpath.c:
*** 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.
- Raw text -