You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/10/10 01:59:41 UTC
svn commit: r1396422 -
/incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp
Author: benh
Date: Tue Oct 9 23:59:41 2012
New Revision: 1396422
URL: http://svn.apache.org/viewvc?rev=1396422&view=rev
Log:
Updated implemenation of os::isfile to match Python (contributed by
Ben Mahler, https://reviews.apache.org/r/7174).
Modified:
incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp
Modified: incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp?rev=1396422&r1=1396421&r2=1396422&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/include/stout/os.hpp Tue Oct 9 23:59:41 2012
@@ -378,7 +378,7 @@ inline bool isfile(const std::string& pa
if (::stat(path.c_str(), &s) < 0) {
return false;
}
- return !S_ISDIR(s.st_mode);
+ return S_ISREG(s.st_mode);
}