Mac default screensaver: don't redirect logs to user's directories. Under Sandbox Security, graphics apps do not have access to user's directories.

This commit is contained in:
Charlie Fenton 2020-05-06 05:37:35 -07:00
parent 3dcff3c721
commit 37d0114eb2
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// This file is part of BOINC. // This file is part of BOINC.
// http://boinc.berkeley.edu // http://boinc.berkeley.edu
// Copyright (C) 2018 University of California // Copyright (C) 2020 University of California
// //
// BOINC is free software; you can redistribute it and/or modify it // BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License // under the terms of the GNU Lesser General Public License
@ -498,7 +498,9 @@ int main(int argc, char** argv) {
BOINC_DIAG_MEMORYLEAKCHECKENABLED | BOINC_DIAG_MEMORYLEAKCHECKENABLED |
#endif #endif
BOINC_DIAG_DUMPCALLSTACKENABLED | BOINC_DIAG_DUMPCALLSTACKENABLED |
#ifndef __APPLE__ // Can't access user's directories under sandbox security
BOINC_DIAG_PERUSERLOGFILES | BOINC_DIAG_PERUSERLOGFILES |
#endif
BOINC_DIAG_REDIRECTSTDERR | BOINC_DIAG_REDIRECTSTDERR |
BOINC_DIAG_REDIRECTSTDOUT | BOINC_DIAG_REDIRECTSTDOUT |
BOINC_DIAG_TRACETOSTDOUT; BOINC_DIAG_TRACETOSTDOUT;