You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2013/12/06 17:52:36 UTC
svn commit: r1548596 - /qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp
Author: aconway
Date: Fri Dec 6 16:52:36 2013
New Revision: 1548596
URL: http://svn.apache.org/r1548596
Log:
QPID-5398: Fix cut 'n paste error in sys/posix/Path.cpp
Posix Path::IsAbsolute() function was checking for windows-style paths.
Modified:
qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp?rev=1548596&r1=1548595&r2=1548596&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/posix/Path.cpp Fri Dec 6 16:52:36 2013
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org