You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/05/07 01:40:30 UTC

git commit: Fix for mesos fetcher not applying the executor bit.

Repository: mesos
Updated Branches:
  refs/heads/master f76ab279b -> a995f51e6


Fix for mesos fetcher not applying the executor bit.

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


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

Branch: refs/heads/master
Commit: a995f51e69dd576c9421334a9db6f7dee219b064
Parents: f76ab27
Author: Tom Arnfeld <ta...@me.com>
Authored: Tue May 6 15:15:34 2014 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Tue May 6 15:15:34 2014 -0700

----------------------------------------------------------------------
 src/launcher/fetcher.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a995f51e/src/launcher/fetcher.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/fetcher.cpp b/src/launcher/fetcher.cpp
index 8ba33c4..8c9e20d 100644
--- a/src/launcher/fetcher.cpp
+++ b/src/launcher/fetcher.cpp
@@ -191,8 +191,8 @@ int main(int argc, char* argv[])
 
     CommandInfo::URI uri;
     uri.set_value(token.substr(0, pos));
-    uri.set_executable(token.substr(pos + 1) == "1");
-    uri.set_extract(token.substr(pos + 2) == "X");
+    uri.set_executable(token.substr(pos + 1, 1) == "1");
+    uri.set_extract(token.substr(pos + 2, 1) == "X");
 
     commandInfo.add_uris()->MergeFrom(uri);
   }