From 1348f65bb94a4b0af58f2c6c842d18a6435a8996 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 15 Dec 2008 20:53:18 +0000 Subject: [PATCH] * syscalls.cc (gen_full_path_at): Use isabspath instead of isdirsep to recognize absolute path. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/syscalls.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2909ce10d..fb4c78d4d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2008-12-15 Corinna Vinschen + + * syscalls.cc (gen_full_path_at): Use isabspath instead of isdirsep + to recognize absolute path. + 2008-12-15 Corinna Vinschen * sec_auth.cc (open_local_policy): Set lsa handle to 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 {