From 6a8dcb9e871820dba6689830ba8e4b926a7b0b55 Mon Sep 17 00:00:00 2001 From: Shenhao Wang Date: Sun, 12 Sep 2021 14:51:05 +0800 Subject: [PATCH 1/3] WIP:change is_absolute_path's action --- src/include/port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/port.h b/src/include/port.h index 82f63de325..2c18a27f77 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -93,7 +93,7 @@ extern void pgfnames_cleanup(char **filenames); /* See path_is_relative_and_below_cwd() for how we handle 'E:abc'. */ #define is_absolute_path(filename) \ ( \ - IS_DIR_SEP((filename)[0]) || \ + (IS_DIR_SEP((filename)[0]) && IS_DIR_SEP((filename)[1])) || \ (isalpha((unsigned char) ((filename)[0])) && (filename)[1] == ':' && \ IS_DIR_SEP((filename)[2])) \ ) -- 2.26.2