Diff of /server/system.cpp [0d3bb8] .. [fe74ef]  Maximize  Restore

  Switch to side-by-side view

--- a/server/system.cpp
+++ b/server/system.cpp
@@ -213,6 +213,10 @@
     shell::bind("sipwitch");
     corefiles();
     args.getargv0(argv);
+
+    const char *security = args.getenv("SECURITY");
+    if(!security)
+        security = "default";
 
 #if defined(DEBUG)
     if(eq(argv[1], "-gdb") || eq(argv[1], "--gdb") || eq(argv[1], "-dbg") || eq(argv[1], "--dbg")) {
@@ -474,7 +478,7 @@
     if(is(debuglevel))
         verbose.set((unsigned)shell::DEBUG0 + *debuglevel);
 
-    if(is(hotspot))
+    if(is(hotspot) || eq(security, "public"))
         service::callback::setPublic();
 
 #ifdef  HAVE_PWD_H
@@ -522,7 +526,7 @@
     endgrent();
     endpwent();
 
-    if(is(desktop)) {
+    if(is(desktop) || eq(security, "desktop")) {
         umask(002);
         service::callback::setPublic();
     }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks