freebsd-ports/comms/linrad/files/patch-xmain.c
Diane Bruce bc31ab75ff - update to latest
- clean up DOCS install

Approved:       ehaupt (mentor)
2007-02-27 17:06:35 +00:00

19 lines
428 B
C

--- xmain.c.orig Wed Feb 14 04:37:46 2007
+++ xmain.c Thu Feb 22 20:00:30 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)