summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/sys/posix
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-12-06 16:52:36 +0000
committerAlan Conway <aconway@apache.org>2013-12-06 16:52:36 +0000
commit10e443ff328b34917dbf12cfe08d103ce2e5bf5d (patch)
tree7932f49cf5454e1bcb416617c5dc6698660e99d7 /qpid/cpp/src/qpid/sys/posix
parent4729c7cefc0fd58d59972eeb81f4b48fad3d7a3a (diff)
downloadqpid-python-10e443ff328b34917dbf12cfe08d103ce2e5bf5d.tar.gz
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
Diffstat (limited to 'qpid/cpp/src/qpid/sys/posix')
-rw-r--r--qpid/cpp/src/qpid/sys/posix/Path.cpp6
1 files changed, 1 insertions, 5 deletions
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