aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-06 19:06:30 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-06 19:06:30 +0000
commit6e26c8c4e678c85da0a87b0b2f56fba95c0ebd3b (patch)
tree5317cd352e0e1de2e5d8bec894ecac39a3124d98 /src/util/common_logging.c
parentcfca185c1d55e183909c50b05440c1f5bd0dbd05 (diff)
downloadgnunet-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.c8
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;