Magellan Linux

Annotation of /trunk/libX11/patches/libX11-1.0.0-setuid.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 150 - (hide annotations) (download)
Tue May 8 20:15:07 2007 UTC (17 years ago) by niro
File size: 420 byte(s)
-moved to patches subdir

1 niro 150 diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
2     index f8b3404..bb1ee20 100644
3     --- a/src/xlibi18n/lcFile.c
4     +++ b/src/xlibi18n/lcFile.c
5     @@ -269,7 +269,11 @@ #else
6     if (seteuid(0) != 0) {
7     priv = 0;
8     } else {
9     - seteuid(oldeuid);
10     + if (seteuid(oldeuid) == -1) {
11     + /* XXX ouch, coudn't get back to original uid
12     + what can we do ??? */
13     + _exit(127);
14     + }
15     priv = 1;
16     }
17     #endif