From 5704ad99d3e07fa1dc0a7b9cebd6135380df5e65 Mon Sep 17 00:00:00 2001
From: markt <markt>
Date: Sat, 9 Jun 2007 17:47:22 +0000
Subject: fix for exec changes

---
 src/FbCommands.cc   | 4 +---
 util/fbrun/FbRun.cc | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 3775544..8266bce 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -156,11 +156,9 @@ int ExecuteCmd::run() {
     displaystring.erase(displaystring.size()-1);
     displaystring += intbuff;
 
-    std::string exec_cmd = "exec " + m_cmd;
-
     setsid();
     putenv(const_cast<char *>(displaystring.c_str()));
-    execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL));
+    execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL));
     exit(0);
 
     return pid; // compiler happy -> we are happy ;)
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 95cb94d..908b3c2 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -124,10 +124,8 @@ void FbRun::run(const std::string &command) {
         if (!shell)
             shell = "/bin/sh";
 
-        std::string exec_cmd = "exec " + command;
-
         setsid();
-        execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL));
+        execl(shell, shell, "-c", command.c_str(), static_cast<void*>(NULL));
         exit(0); //exit child
     }
 
-- 
cgit v0.11.2