summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 2990a336c5..54bbdfa30a 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -270,7 +270,10 @@ va_dcl
{
if (!dbf) {
int oldumask = umask(022);
- dbf = fopen(debugf,"w");
+ if(append_log)
+ dbf = fopen(debugf,"a");
+ else
+ dbf = fopen(debugf,"w");
umask(oldumask);
if (dbf) {
setbuf(dbf,NULL);