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 2011/06/05 05:31:13 UTC

svn commit: r1131623 - /incubator/mesos/trunk/src/launcher.cpp

Author: benh
Date: Sun Jun  5 03:31:12 2011
New Revision: 1131623

URL: http://svn.apache.org/viewvc?rev=1131623&view=rev
Log:
fixed make fail, char-pointer instead of a c++-string

Modified:
    incubator/mesos/trunk/src/launcher.cpp

Modified: incubator/mesos/trunk/src/launcher.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/launcher.cpp?rev=1131623&r1=1131622&r2=1131623&view=diff
==============================================================================
--- incubator/mesos/trunk/src/launcher.cpp (original)
+++ incubator/mesos/trunk/src/launcher.cpp Sun Jun  5 03:31:12 2011
@@ -129,7 +129,7 @@ string ExecutorLauncher::fetchExecutor()
     if (ret != 0)
       fatal("HDFS copyToLocal failed: return code %d", ret);
     executor = localFile;
-    if (chmod(executor, S_IXUSR | S_IXGRP | S_IXOTH) != 0)
+    if (chmod(executor.c_str(), S_IXUSR | S_IXGRP | S_IXOTH) != 0)
       fatalerror("chmod failed");
   }