[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/daemon
From:       Dirk Mueller <mueller () kde ! org>
Date:       2008-11-26 17:52:41
Message-ID: 1227721961.089093.919.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 889394 by mueller:

make sure that a too strict umask doesn't ruin the game
fixes https://bugzilla.novell.com/show_bug.cgi?id=446329


 M  +6 -0      environment.cpp  


--- trunk/icecream/daemon/environment.cpp #889393:889394
@@ -159,6 +159,9 @@
                 log_perror( "mkdir in cleanup_cache() failed" );
             return false;
         }
+        chown( basedir.c_str(), 0, 0 );
+        chmod( basedir.c_str(), 0755 );
+
         return WIFEXITED(status);
     }
     // else
@@ -215,6 +218,7 @@
 	rmdir( nativedir.c_str() );
 	return 0;
     }
+    chmod( nativedir.c_str(), 0755 );
 
     flush_debug();
     pid_t pid = fork();
@@ -239,6 +243,8 @@
         }
     }
     // else
+    umask(022);
+
     if ( setgid( nobody_gid ) < 0) {
       log_perror("setgid failed");
       _exit(143);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic