diff options
Diffstat (limited to 'x11/xorg-libs/patches/patch-cm')
-rw-r--r-- | x11/xorg-libs/patches/patch-cm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/xorg-libs/patches/patch-cm b/x11/xorg-libs/patches/patch-cm new file mode 100644 index 00000000000..fc6ffa9bdff --- /dev/null +++ b/x11/xorg-libs/patches/patch-cm @@ -0,0 +1,17 @@ +$NetBSD: patch-cm,v 1.1 2006/09/14 16:52:54 joerg Exp $ + +--- programs/xdm/xdmshell.c.orig 2005-07-15 00:58:25.000000000 +0200 ++++ programs/xdm/xdmshell.c +@@ -183,7 +183,11 @@ main ( + #endif + + /* make xdm run in a non-setuid environment */ +- setuid (geteuid()); ++ if (setuid (geteuid()) == -1) { ++ fprintf(stderr, "%s: cannot setuid (error %d, %s)\r\n", ++ ProgramName, errno, strerror(errno)); ++ exit(1); ++ } + + /* + * exec /usr/bin/X11/xdm -nodaemon -udpPort 0 |