summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-22 14:03:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-22 14:03:02 +0000
commit61c59c45f61eaeb8a800af125d5ccab3390361ce (patch)
tree883df86dbd3a903f826836546ad21df8fc3e9af2
parent9a41108a1a11f92da34e11843d7734d5572db90a (diff)
Disable the exec-formatted and exec-selectable strictly
ok matthieu
-rw-r--r--app/xterm/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/xterm/main.c b/app/xterm/main.c
index eb7f862ad..c1fbcdb56 100644
--- a/app/xterm/main.c
+++ b/app/xterm/main.c
@@ -2903,6 +2903,7 @@ main(int argc, char *argv[]ENVP_ARG)
#endif
{
+#if OPT_EXEC_XTERM
String data = NULL;
getKeymapResources(SHELL_OF(term), "vt100", "VT100", XtRString, &data, sizeof(data));
if (data &&
@@ -2912,7 +2913,9 @@ main(int argc, char *argv[]ENVP_ARG)
xtermWarning("pledge\n");
exit(1);
}
- } else {
+ } else
+#endif /* OPT_EXEC_XTERM */
+ {
char *env;
if ((env = getenv("HOME"))) {