diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-15 15:34:19 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-15 15:34:19 -0400 |
commit | 3ee0df541e284074662c7c916951fb37aac4abef (patch) | |
tree | b176830d33d229d83426314b639d55d72874ac68 /src | |
parent | merged 0ad profile from Fred-Barclay (diff) | |
download | firejail-3ee0df541e284074662c7c916951fb37aac4abef.tar.gz firejail-3ee0df541e284074662c7c916951fb37aac4abef.tar.zst firejail-3ee0df541e284074662c7c916951fb37aac4abef.zip |
x11 fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/x11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c index ef1095a49..985ca9337 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c | |||
@@ -170,7 +170,7 @@ void x11_start_xephyr(int argc, char **argv) { | |||
170 | 170 | ||
171 | // unfortunately, xephyr does a number of weird things when started by root user!!! | 171 | // unfortunately, xephyr does a number of weird things when started by root user!!! |
172 | if (getuid() == 0) { | 172 | if (getuid() == 0) { |
173 | fprintf(stderr, "Error: this feature is not available when running as root\n"); | 173 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); |
174 | exit(1); | 174 | exit(1); |
175 | } | 175 | } |
176 | 176 | ||
@@ -292,7 +292,7 @@ void x11_start_xpra(int argc, char **argv) { | |||
292 | 292 | ||
293 | // unfortunately, xpra does a number of weird things when started by root user!!! | 293 | // unfortunately, xpra does a number of weird things when started by root user!!! |
294 | if (getuid() == 0) { | 294 | if (getuid() == 0) { |
295 | fprintf(stderr, "Error: this feature is not available when running as root\n"); | 295 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); |
296 | exit(1); | 296 | exit(1); |
297 | } | 297 | } |
298 | 298 | ||
@@ -410,7 +410,7 @@ void x11_start(int argc, char **argv) { | |||
410 | 410 | ||
411 | // unfortunately, xpra does a number of weird things when started by root user!!! | 411 | // unfortunately, xpra does a number of weird things when started by root user!!! |
412 | if (getuid() == 0) { | 412 | if (getuid() == 0) { |
413 | fprintf(stderr, "Error: this feature is not available when running as root\n"); | 413 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); |
414 | exit(1); | 414 | exit(1); |
415 | } | 415 | } |
416 | 416 | ||