summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index 0d5926e..bbf2d29 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -312,7 +312,7 @@ static void crash_shell(void) {
} else if (*str == 's' && *(str+1) == '\0') {
sprintf(cmd, "sh -c '(%s) &'", crash_stack_command1);
/* crash */
- if (no_external_cmds) {
+ if (no_external_cmds || !cmd_ok("crash")) {
fprintf(stderr, "\nno_external_cmds=%d\n",
no_external_cmds);
goto crash_prompt;
OpenPOWER on IntegriCloud