|
From: <mla...@us...> - 2008-01-04 04:13:53
|
Revision: 401
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=401&view=rev
Author: mlampard
Date: 2008-01-03 20:13:58 -0800 (Thu, 03 Jan 2008)
Log Message:
-----------
readme.solaris includes a script to set permissions for 'nobody'. remove unwanted ifdefs so solaris can fall back to running non-root. Update build prerequisites for solaris.
Modified Paths:
--------------
trunk/g15daemon-wip/README.Solaris
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/README.Solaris
===================================================================
--- trunk/g15daemon-wip/README.Solaris 2008-01-04 03:46:26 UTC (rev 400)
+++ trunk/g15daemon-wip/README.Solaris 2008-01-04 04:13:58 UTC (rev 401)
@@ -35,6 +35,7 @@
perl-5.8.8-sol10-x86-local
gcc-3.4.6-sol10-x86-local
libtool-1.5.24-sol10-x86-local
+m4-1.4.7-sol10-x86-local
When compiling LibG15 from SVN you may need to set
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/sfw/lib:/opt/g15/lib
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2008-01-04 03:46:26 UTC (rev 400)
+++ trunk/g15daemon-wip/g15daemon/main.c 2008-01-04 04:13:58 UTC (rev 401)
@@ -479,13 +479,13 @@
if(!cycle_cmdline_override){
cycle_key = 1==g15daemon_cfg_read_bool(global_cfg,"Use MR as Cycle Key",0)?G15_KEY_MR:G15_KEY_L1;
}
-#ifndef OSTYPE_SOLARIS
+
/* all other processes/threads should be seteuid nobody */
if(nobody!=NULL) {
seteuid(nobody->pw_uid);
setegid(nobody->pw_gid);
}
-#endif
+
/* initialise the pthread condition for the LCD thread */
g15daemon_init_refresh();
pthread_mutex_init(&g15lib_mutex, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|