Skip to content
Permalink
Browse files
ensure display begins with /
  • Loading branch information
jschlyter committed Dec 19, 2016
1 parent 3100451 commit 8746035
Showing 1 changed file with 2 additions and 0 deletions.
@@ -4364,6 +4364,8 @@ is_path_to_xsocket(const char *display, char *path, size_t pathlen)
error("%s: display path too long", __func__);
return 0;
}
if (display[0] != '/')
return 0;
if (stat(path, &sbuf) == 0) {
return 1;
} else {

0 comments on commit 8746035

Please sign in to comment.