From 1f09f4f7716db5939ec1c9a278b5661616dd72d6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 15 May 2012 00:49:26 +0000 Subject: -help seaspider some more --- src/util/common_logging.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/util/common_logging.c') diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 995f2e88a..2c0fd57a8 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -530,6 +530,8 @@ parse_all_definitions () gnunet_force_log_parsed = GNUNET_YES; } #endif + + /** * Setup logging. * @@ -569,17 +571,16 @@ GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile) if (NULL == fn) return GNUNET_SYSERR; dirwarn = (GNUNET_OK != GNUNET_DISK_directory_create_for_file (fn)); - altlog_fd = OPEN (fn, O_APPEND | #if WINDOWS + altlog_fd = OPEN (fn, O_APPEND | O_BINARY | -#endif O_WRONLY | O_CREAT, -#if WINDOWS - _S_IREAD | _S_IWRITE + _S_IREAD | _S_IWRITE); #else - S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH + altlog_fd = OPEN (fn, O_APPEND | + O_WRONLY | O_CREAT, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); #endif - ); if (altlog_fd != -1) { int dup_return; -- cgit v1.2.3