diff options
author | Christopher Faylor <me@cgf.cx> | 2000-06-17 22:05:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-06-17 22:05:19 +0000 |
commit | 42867d69ae9901c9fed6e1dd56ff04064151a70d (patch) | |
tree | 3133e6429a650a8fea95de3f6f60bc02f4b8acb7 | |
parent | e94903eb0f98dea688ac3a009b97dfeb15a1a348 (diff) | |
download | cygnal-42867d69ae9901c9fed6e1dd56ff04064151a70d.tar.gz cygnal-42867d69ae9901c9fed6e1dd56ff04064151a70d.tar.bz2 cygnal-42867d69ae9901c9fed6e1dd56ff04064151a70d.zip |
* winsup.h (isabspath): Don't report `C:foo' as an absolute path.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/winsup.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f563f9238..2e8c3b46f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 85fd41e29..db7774b48 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -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 **********************/ |