Message-Id: <200002201453.JAA27447@delorie.com> From: "Mark E." To: Eli Zaretskii , djgpp-workers AT delorie DOT com Date: Sun, 20 Feb 2000 10:01:43 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: fileutils mkdir gotcha References: In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12a) Reply-To: djgpp-workers AT delorie DOT com > 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.