projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfca185
)
LRN: correct behaviour when logfile does not exist
author
Christian Grothoff
<christian@grothoff.org>
Tue, 6 Dec 2011 19:06:30 +0000
(19:06 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 6 Dec 2011 19:06:30 +0000
(19:06 +0000)
src/util/common_logging.c
patch
|
blob
|
history
diff --git
a/src/util/common_logging.c
b/src/util/common_logging.c
index ba51e550ca61263a3ca8d13b8205c6b03f852a0c..18b03d0ebbd15d90f7202c6bbe45761223594ec2 100644
(file)
--- 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)
#if WINDOWS
O_BINARY |
#endif
- O_WRONLY);
+ O_WRONLY | O_CREAT,
+#if WINDOWS
+ _S_IREAD | _S_IWRITE
+#else
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
+#endif
+ );
if (altlog_fd != -1)
{
int dup_return;