From a1da761346671ac5d80710cb19368f7aea76ead2 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 12 Oct 2007 05:10:52 +0000 Subject: [PATCH] Tweaks to screensaver svn path=/trunk/boinc/; revision=13838 --- clientscr/gfx_switcher.C | 28 ++++++++++++++-------------- clientscr/screensaver.cpp | 12 ++++++++++-- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/clientscr/gfx_switcher.C b/clientscr/gfx_switcher.C index c461f4c6e3..2cbdb163d3 100644 --- a/clientscr/gfx_switcher.C +++ b/clientscr/gfx_switcher.C @@ -57,17 +57,6 @@ int main(int argc, char** argv) { strlcpy(user_name, "boinc_project", sizeof(user_name)); strlcpy(group_name, "boinc_project", sizeof(group_name)); -#if 0 // For debugging only - char current_dir[MAXPATHLEN]; - - getcwd( current_dir, sizeof(current_dir)); - print_to_log_file( "current directory = %s", current_dir); - - for (int i=0; ipw_uid); + // NOTE: call print_to_log_file only after switching user and group +#if 0 // For debugging only + char current_dir[MAXPATHLEN]; + + getcwd( current_dir, sizeof(current_dir)); + print_to_log_file( "current directory = %s", current_dir); + + for (int i=0; i