summaryrefslogtreecommitdiffstats
path: root/x11vnc/ssltools.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/ssltools.h')
-rw-r--r--x11vnc/ssltools.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h
index ea26478..804767a 100644
--- a/x11vnc/ssltools.h
+++ b/x11vnc/ssltools.h
@@ -1295,7 +1295,7 @@ char create_display[] =
"\n"
"have_root=\"\"\n"
"id0=`id`\n"
-"if id | grep -w root > /dev/null; then\n"
+"if id | sed -e 's/ gid.*$//' | grep -w root > /dev/null; then\n"
" have_root=\"1\"\n"
"fi\n"
"\n"