diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-06 19:06:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-06 19:06:30 +0000 |
commit | 6e26c8c4e678c85da0a87b0b2f56fba95c0ebd3b (patch) | |
tree | 5317cd352e0e1de2e5d8bec894ecac39a3124d98 /src/util/common_logging.c | |
parent | cfca185c1d55e183909c50b05440c1f5bd0dbd05 (diff) | |
download | gnunet-6e26c8c4e678c85da0a87b0b2f56fba95c0ebd3b.tar.gz gnunet-6e26c8c4e678c85da0a87b0b2f56fba95c0ebd3b.zip |
LRN: correct behaviour when logfile does not exist
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index ba51e550c..18b03d0eb 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -574,7 +574,13 @@ GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile) | |||
574 | #if WINDOWS | 574 | #if WINDOWS |
575 | O_BINARY | | 575 | O_BINARY | |
576 | #endif | 576 | #endif |
577 | O_WRONLY); | 577 | O_WRONLY | O_CREAT, |
578 | #if WINDOWS | ||
579 | _S_IREAD | _S_IWRITE | ||
580 | #else | ||
581 | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH | ||
582 | #endif | ||
583 | ); | ||
578 | if (altlog_fd != -1) | 584 | if (altlog_fd != -1) |
579 | { | 585 | { |
580 | int dup_return; | 586 | int dup_return; |