From e1db87b9b9e4a582e106fb9f24e6be21c8fa0917 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Dec 1999 18:42:28 +0000 Subject: no_comment --- tools/xhost+.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/xhost+.c (limited to 'tools/xhost+.c') diff --git a/tools/xhost+.c b/tools/xhost+.c new file mode 100644 index 000000000..58781274e --- /dev/null +++ b/tools/xhost+.c @@ -0,0 +1,11 @@ +#include +#include + + +int main(int argc, char **argv) { + Display *d = XOpenDisplay(getenv("DISPLAY") ? getenv("DISPLAY") : ":0"); + if (d == NULL) exit(1); + XDisableAccessControl(d); + XCloseDisplay(d); + exit(0); +} -- cgit v1.2.1