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