OSDN Git Service

* winsup.h (isabspath): Don't report `C:foo' as an absolute path.
authorcgf <cgf>
Sat, 17 Jun 2000 22:05:19 +0000 (22:05 +0000)
committercgf <cgf>
Sat, 17 Jun 2000 22:05:19 +0000 (22:05 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/winsup.h

index f563f92..2e8c3b4 100644 (file)
@@ -1,3 +1,7 @@
+2000-06-17  Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+       * winsup.h (isabspath): Don't report `C:foo' as an absolute path.
+
 Sat Jun 17 13:51:48 2000  Christopher Faylor <cgf@cygnus.com>
 
        * configure.in: Detect "cross-hosting" situation and set appropriate
index 85fd41e..db7774b 100644 (file)
@@ -357,7 +357,7 @@ extern unsigned int signal_shift_subtract;
 
 #define isdirsep SLASH_P
 #define isabspath(p) \
-  (isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':'))
+  (isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':' && (!(p)[2] || isdirsep ((p)[2]))))
 
 /******************** Initialization/Termination **********************/