summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2005-03-15 18:39:38 (GMT)
committervincentdarley <vincentdarley>2005-03-15 18:39:38 (GMT)
commite6cc5abe3bbdf4ffe191a3e679436b8948890c9e (patch)
treeb583b85e867826dc80f3277b353f97fb7f7a2a10 /generic
parent05d93eeba37091d79b51b79a75fd4c0b273b0738 (diff)
downloadtcl-e6cc5abe3bbdf4ffe191a3e679436b8948890c9e.zip
tcl-e6cc5abe3bbdf4ffe191a3e679436b8948890c9e.tar.gz
tcl-e6cc5abe3bbdf4ffe191a3e679436b8948890c9e.tar.bz2
fix to file norm, file pathtype on windows reserved filenames - ensure build ok on unix
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 7aac689..f52db3a 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclFileName.c,v 1.64 2005/03/15 18:07:56 vincentdarley Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.65 2005/03/15 18:39:38 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -185,13 +185,19 @@ ExtractWinRoot(path, resultPtr, offset, typePtr)
abs = 5;
}
}
- } else if (stricmp(path, "prn") == 0) {
+ } else if ((path[0] == 'p' || path[0] == 'P')
+ && (path[1] == 'r' || path[1] == 'R')
+ && (path[2] == 'n' || path[2] == 'N'))
/* Have match for 'prn' */
abs = 3;
- } else if (stricmp(path, "nul") == 0) {
+ } else if ((path[0] == 'n' || path[0] == 'N')
+ && (path[1] == 'u' || path[1] == 'U')
+ && (path[2] == 'l' || path[2] == 'L'))
/* Have match for 'nul' */
abs = 3;
- } else if (stricmp(path, "aux") == 0) {
+ } else if ((path[0] == 'a' || path[0] == 'A')
+ && (path[1] == 'u' || path[1] == 'U')
+ && (path[2] == 'x' || path[2] == 'X'))
/* Have match for 'aux' */
abs = 3;
}