You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/05/23 22:17:15 UTC

[3/4] mesos git commit: Stout: Removed implicit conversions in `permissions.hpp` on Windows.

Stout: Removed implicit conversions in `permissions.hpp` on Windows.

Review: https://reviews.apache.org/r/47390/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d78f2721
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d78f2721
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d78f2721

Branch: refs/heads/master
Commit: d78f2721590c49ec65d00cc506ca551235741429
Parents: a05cb3d
Author: Alex Clemmer <cl...@gmail.com>
Authored: Fri May 20 13:58:43 2016 -0700
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Mon May 23 15:16:58 2016 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/os/permissions.hpp | 30 ++++++++++----------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d78f2721/3rdparty/stout/include/stout/os/permissions.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/os/permissions.hpp b/3rdparty/stout/include/stout/os/permissions.hpp
index 16b5bca..1fa7614 100644
--- a/3rdparty/stout/include/stout/os/permissions.hpp
+++ b/3rdparty/stout/include/stout/os/permissions.hpp
@@ -24,21 +24,21 @@ struct Permissions
 {
   explicit Permissions(mode_t mode)
   {
-    owner.r = mode & S_IRUSR;
-    owner.w = mode & S_IWUSR;
-    owner.x = mode & S_IXUSR;
-    owner.rwx = mode & S_IRWXU;
-    group.r = mode & S_IRGRP;
-    group.w = mode & S_IWGRP;
-    group.x = mode & S_IXGRP;
-    group.rwx = mode & S_IRWXG;
-    others.r = mode & S_IROTH;
-    others.w = mode & S_IWOTH;
-    others.x = mode & S_IXOTH;
-    others.rwx = mode & S_IRWXO;
-    setuid = mode & S_ISUID;
-    setgid = mode & S_ISGID;
-    sticky = mode & S_ISVTX;
+    owner.r = (mode & S_IRUSR) != 0;
+    owner.w = (mode & S_IWUSR) != 0;
+    owner.x = (mode & S_IXUSR) != 0;
+    owner.rwx = (mode & S_IRWXU) != 0;
+    group.r = (mode & S_IRGRP) != 0;
+    group.w = (mode & S_IWGRP) != 0;
+    group.x = (mode & S_IXGRP) != 0;
+    group.rwx = (mode & S_IRWXG) != 0;
+    others.r = (mode & S_IROTH) != 0;
+    others.w = (mode & S_IWOTH) != 0;
+    others.x = (mode & S_IXOTH) != 0;
+    others.rwx = (mode & S_IRWXO) != 0;
+    setuid = (mode & S_ISUID) != 0;
+    setgid = (mode & S_ISGID) != 0;
+    sticky = (mode & S_ISVTX) != 0;
   }
 
   struct