From 10e443ff328b34917dbf12cfe08d103ce2e5bf5d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 6 Dec 2013 16:52:36 +0000 Subject: QPID-5398: Fix cut 'n paste error in sys/posix/Path.cpp Posix Path::IsAbsolute() function was checking for windows-style paths. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1548596 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/sys/posix/Path.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/sys/posix/Path.cpp b/qpid/cpp/src/qpid/sys/posix/Path.cpp index 984551379c..063e3cfc51 100644 --- a/qpid/cpp/src/qpid/sys/posix/Path.cpp +++ b/qpid/cpp/src/qpid/sys/posix/Path.cpp @@ -55,10 +55,6 @@ bool Path::exists () const { bool Path::isFile() const { return isFlag(path, S_IFREG); } bool Path::isDirectory() const { return isFlag(path, S_IFDIR); } - -bool Path::isAbsolute() const { - return (path.size() > 0 && (path[0] == separator[0] || path[0] == '/')) - || (path.size() > 1 && (isalpha(path[0]) && path[1] == ':')); -} +bool Path::isAbsolute() const { return (path.size() > 0 && path[0] == separator[0]); } }} // namespace qpid::sys -- cgit v1.2.1