diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-05-22 14:07:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-05-22 14:07:52 +0000 |
commit | 070fffe910497ee0ef9f5d7ceafffc69121141fc (patch) | |
tree | 521635eff534c36ee45ea3c392da6384cee53d9b | |
parent | 61c59c45f61eaeb8a800af125d5ccab3390361ce (diff) |
Disable wtmp support on OpenBSD, it hasn't worked in nearly two decades
because we dropped setuid root around the, but the code to attempt it
it was erroneously left behind
ok matthieu
-rw-r--r-- | app/xterm/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/xterm/main.c b/app/xterm/main.c index c1fbcdb56..d6771bae6 100644 --- a/app/xterm/main.c +++ b/app/xterm/main.c @@ -306,7 +306,7 @@ ttyslot(void) #include <sys/param.h> /* for NOFILE */ #endif -#if defined(BSD) && (BSD >= 199103) +#if defined(BSD) && (BSD >= 199103) && !defined(__OpenBSD__) #define WTMP #endif @@ -2965,7 +2965,6 @@ main(int argc, char *argv[]ENVP_ARG) unveil("/usr/local/share/icons", "r"); unveil("/usr/local/lib/X11/icons", "r"); unveil(etc_utmp, "w"); - unveil(etc_wtmp, "w"); if (pledge("stdio rpath wpath id proc tty", NULL) == -1) { xtermWarning("pledge\n"); |