Mail Archives: djgpp-workers/2000/02/28/09:14:39
This patch lets '/dev/env' survive as '/dev/env' so cases like 'mkdir
/dev/env' in mkinstalldirs don't cause a 'env' dir to be created in the
current directory.
*** src/libc/dos/io/putpath.c.orig Thu Jun 3 13:27:34 1999
--- src/libc/dos/io/putpath.c Sun Feb 27 18:09:12 2000
*************** _put_path2(const char *path, int offset)
*** 140,145 ****
--- 140,150 ----
o--;
path = p;
}
+ else if (strcmp(p, "/dev/env") == 0)
+ /* Prevent from being changed to just 'env' so
+ mkdir '/dev/env' doesn't create 'env' in
+ the current directory. */
+ ;
else if (p[5])
path = p + 5;
}
- Raw text -