Preserve environment when calling the kismet_capture client. We need
stuff like $DISPLAY or $XAUTHORITY to display the consolehelper dialog.
Index: kismet-2009-06-R1/ipc_remote.cc
===================================================================
--- kismet-2009-06-R1.orig/ipc_remote.cc
+++ kismet-2009-06-R1/ipc_remote.cc
@@ -323,7 +323,7 @@ int IPCRemote::SpawnIPC() {
snprintf(cmdarg[1], 4, "%d", sockpair[0]);
- if (execve(cmdarg[0], cmdarg, NULL) < 0) {
+ if (execve(cmdarg[0], cmdarg, globalreg->envp) < 0) {
int status = errno;
fprintf(stderr, "Failed to exec as IPC child: %s\n",
strerror(status));