diff options
| author | Alan Conway <aconway@apache.org> | 2013-12-06 16:52:36 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-12-06 16:52:36 +0000 |
| commit | de93a7b3e8620b954f59cbb54e35103cef39e903 (patch) | |
| tree | ca4d78b0cfde04a481cc5c9e881b03369bb5302f /cpp/src/qpid/sys | |
| parent | 837bb00b0bffe95ece7ada81f80d8792e8f2dc7b (diff) | |
| download | qpid-python-de93a7b3e8620b954f59cbb54e35103cef39e903.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/qpid@1548596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
| -rw-r--r-- | cpp/src/qpid/sys/posix/Path.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/src/qpid/sys/posix/Path.cpp b/cpp/src/qpid/sys/posix/Path.cpp index 984551379c..063e3cfc51 100644 --- a/cpp/src/qpid/sys/posix/Path.cpp +++ b/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 |
