blob: 3a08584cf2c88a8cc0053c8a97a29b7531555b6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- xmain.c.orig Tue Sep 4 18:14:34 2007
+++ xmain.c Thu Sep 27 21:09:15 2007
@@ -39,6 +39,7 @@
float total;
}PIXINFO;
+int saved_euid=-1;
int main(int argc, char **argv)
@@ -58,6 +59,8 @@
XTextProperty window_title_property;
unsigned short int *ipalette;
XColor xco;
+saved_euid=geteuid();
+setuid(getuid()); /* XXX drop perms! */
for(i=0; i<MAX_LIRSEM; i++)lirsem_flag[i]=0;
XInitThreads();
if(DUMPFILE)
|