Skip to content
Snippets Groups Projects
Commit aca6dfc3 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add - to accepted characters in a hostname in the xauth regex.

parent 25abbdda
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ extern char *x11_get_xauth(void) ...@@ -124,7 +124,7 @@ extern char *x11_get_xauth(void)
regex_t reg; regex_t reg;
regmatch_t regmatch[2]; regmatch_t regmatch[2];
char *result, *cookie; char *result, *cookie;
static char *cookie_pattern = "^[[:alnum:]]+/unix:[[:digit:]]+" static char *cookie_pattern = "^[[:alnum:]-]+/unix:[[:digit:]]+"
"[[:space:]]+MIT-MAGIC-COOKIE-1" "[[:space:]]+MIT-MAGIC-COOKIE-1"
"[[:space:]]+([[:xdigit:]]+)\n$"; "[[:space:]]+([[:xdigit:]]+)\n$";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment