summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 5b632f03d..7100ce36b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -3610,7 +3610,7 @@ gen_full_path_at (char *path_ret, int dirfd, const char *pathname,
return -1;
}
}
- if (pathname && isdirsep (*pathname))
+ if (pathname && isabspath (pathname))
stpcpy (path_ret, pathname);
else
{