diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2024-07-11 14:17:19 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2024-07-11 14:17:19 +0000 |
commit | 5a26085f5b477873be0bf14b901946fa3a1b1f7c (patch) | |
tree | 20dc3c26319aba6f5d9349cc827fac3f195f64ba | |
parent | b357ecd381cdbbfd1feba11ba2ba257fe5d091de (diff) |
Disable code that breaks parsing of DISPLAY=unix:0 on OpenBSD
issue reported by tb@, ok tb@
-rw-r--r-- | dist/libxcb/src/xcb_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dist/libxcb/src/xcb_util.c b/dist/libxcb/src/xcb_util.c index 5124d144b..c58999a49 100644 --- a/dist/libxcb/src/xcb_util.c +++ b/dist/libxcb/src/xcb_util.c @@ -170,8 +170,10 @@ static int _xcb_parse_display(const char *name, char **host, char **protocol, if (name[0] == '/') return _xcb_parse_display_path_to_socket(name, host, protocol, displayp, screenp); +#ifndef __OpenBSD__ if (strncmp(name, "unix:", 5) == 0) return _xcb_parse_display_path_to_socket(name + 5, host, protocol, displayp, screenp); +#endif slash = strrchr(name, '/'); |