[X2Go-Commits] [x2goclient] 02/02: src/x2goclient.cpp: use $PATH-exploration when re-executing x2goclient in UNIX cleanup helper mode. Fixes: #1139.
git-admin at x2go.org
git-admin at x2go.org
Mon Jan 23 17:05:02 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goclient.
commit b0943be07d7a3eba3f403fd488f5044a6637862c
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Jan 23 16:51:02 2017 +0100
src/x2goclient.cpp: use $PATH-exploration when re-executing x2goclient in UNIX cleanup helper mode. Fixes: #1139.
---
debian/changelog | 2 ++
src/x2goclient.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index d608793..35c0c09 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -549,6 +549,8 @@ x2goclient (4.1.0.0-0x2go1) UNRELEASED; urgency=medium
in MacPorts.
- src/x2goclient.cpp: no need to put new_argv_c_str std::vector onto the
heap. Keep it on the stack.
+ - src/x2goclient.cpp: use $PATH-exploration when re-executing x2goclient
+ in UNIX cleanup helper mode. Fixes: #1139.
[ Bernard Cafarelli ]
* New upstream version (4.1.0.0):
diff --git a/src/x2goclient.cpp b/src/x2goclient.cpp
index b25d0ce..9879142 100644
--- a/src/x2goclient.cpp
+++ b/src/x2goclient.cpp
@@ -57,7 +57,7 @@ int fork_helper (int argc, char **argv) {
/* Add null pointer as last element. */
new_argv_c_str.push_back (0);
- if (0 != execv (new_argv_c_str.front (), &(new_argv_c_str.front ()))) {
+ if (0 != execvp (new_argv_c_str.front (), &(new_argv_c_str.front ()))) {
const int saved_errno = errno;
std::cerr << "Failed to re-execute process as UNIX cleanup helper tool: " << std::strerror (saved_errno) << "\n"
<< "Terminating and killing parent." << "\n"
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list