* winsup.h (isabspath): Don't report `C:foo' as an absolute path.

This commit is contained in:
Christopher Faylor
2000-06-17 22:05:19 +00:00
parent e94903eb0f
commit 42867d69ae
2 changed files with 5 additions and 1 deletions

View 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 **********************/