applied patches from openbsd-ports, closed #1105041 (sf) execl needs a terminating NULL at the end, a '0' would be converted to "int 0" on 64bit-systems
mathias mathias
2 files changed,
3 insertions(+),
3 deletions(-)
M
src/FbCommands.cc
→
src/FbCommands.cc
@@ -131,11 +131,11 @@ displaystring.erase(displaystring.size()-1);
displaystring += intbuff; setsid(); putenv(const_cast<char *>(displaystring.c_str())); - execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); + execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), static_cast<void*>(NULL)); exit(0); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), static_cast<void*>(NULL)); #endif // !__EMX__ }
M
util/fbrun/FbRun.cc
→
util/fbrun/FbRun.cc
@@ -117,7 +117,7 @@
// fork and execute program if (!fork()) { setsid(); - execl("/bin/sh", "/bin/sh", "-c", command.c_str(), 0); + execl("/bin/sh", "/bin/sh", "-c", command.c_str(), static_cast<void*>(NULL)); exit(0); //exit child }