View difference between Paste ID: vnfUBjeC and BHnQiLkS
SHOW: | | - or go back to the newest paste.
1
--- src/server.c.orig   2014-03-03 20:48:49.000000000 +0000
2
+++ src/server.c        2014-04-08 09:17:40.268173534 +0000
3
@@ -72,10 +72,10 @@
4
   const char *home_dir;
5
   GError *error = NULL;
6
7
-  if (G_UNLIKELY (getuid () != geteuid () ||
8
-                  getgid () != getegid () ||
9
-                  geteuid () == 0 ||
10
-                  getegid () == 0)) {
11-
+  if (G_UNLIKELY ((getuid () != geteuid () &&
11+
+  if (G_UNLIKELY ((getuid () != geteuid () ||
12
+                  getgid () != getegid ()) &&
13
+                  geteuid () == 0 &&
14-
+                  getegid () == 0) {
14+
+                  getegid () == 0)) {
15
     g_printerr ("Wrong euid/egid, exiting.\n");
16
     return EXIT_FAILURE;
17
   }