summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff')
-rw-r--r--x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff b/x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff
index a419c59d925e..96d2d0a3225a 100644
--- a/x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff
+++ b/x11-base/xorg-server/files/xorg-server-1.1.0-setuid.diff
@@ -49,7 +49,7 @@ diff -u -u -r1.3 write.c
return 0;
case 0: /* child */
- setuid(getuid());
-+ if (setuid(getuid() == -1)
++ if (setuid(getuid()) == -1)
+ FatalError("xf86writeConfigFile(): "
+ "setuid failed(%s)\n",
+ strerror(errno));