SVN commit 888663 by furlongm: Explicitly set group ownership and permissions on the base cache dir and target dir in case root has a umask of e.g. 0077. Otherwise nobody user won't be able to untar. M +6 -0 environment.cpp --- trunk/icecream/daemon/environment.cpp #888662:888663 @@ -301,11 +301,17 @@ return 0; } + chown( basename.c_str(), 0, nobody_gid ); + chmod( basename.c_str(), 0770 ); + if ( mkdir( dirname.c_str(), 0755 ) && errno != EEXIST ) { log_perror( "mkdir target" ); return 0; } + chown( dirname.c_str(), 0, nobody_gid ); + chmod( dirname.c_str(), 0770 ); + dirname = dirname + "/" + name; if ( mkdir( dirname.c_str(), 0700 ) ) { log_perror( "mkdir name" );