8189b69
Preserve environment when calling the kismet_capture client. We need
8189b69
stuff like $DISPLAY or $XAUTHORITY to display the consolehelper dialog.
8189b69
Enrico Scholz 2fd798e
Index: kismet-2010-07-R1/ipc_remote.cc
8189b69
===================================================================
Enrico Scholz 2fd798e
--- kismet-2010-07-R1.orig/ipc_remote.cc
Enrico Scholz 2fd798e
+++ kismet-2010-07-R1/ipc_remote.cc
Enrico Scholz 2fd798e
@@ -342,7 +342,7 @@ int IPCRemote::SpawnIPC() {
Enrico Scholz 2fd798e
 				// We're running as the child here, we have to pass this failure
Enrico Scholz 2fd798e
 				// up in the return value and this doesn't cause an immediate exit
Enrico Scholz 2fd798e
 				// with error for the caller...
8189b69
-				if (execve(cmdarg[0], cmdarg, NULL) < 0) {
8189b69
+				if (execve(cmdarg[0], cmdarg, globalreg->envp) < 0) {
8189b69
 					int status = errno;
Enrico Scholz 2fd798e
 
Enrico Scholz 2fd798e
 					string fail = "Failed to launch IPC child: " +