summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-15 20:00:41 +0000
committerJeremy Allison <jra@samba.org>1998-04-15 20:00:41 +0000
commiteb4fe9ecdf539209efab07dc992447ea7370cf93 (patch)
tree8cfeca86f3005e1e96b1b1a3ac8410f4ebbba0e5 /source/lib/util.c
parent7ba2195cc1914fbdfdd30eff207ea55ffc3aeb02 (diff)
downloadsamba-eb4fe9ecdf539209efab07dc992447ea7370cf93.tar.gz
samba-eb4fe9ecdf539209efab07dc992447ea7370cf93.tar.xz
samba-eb4fe9ecdf539209efab07dc992447ea7370cf93.zip
ipc.c: Fix for printer queue spinning with Win95.
nmbd.c: Fix for always overwriting log despite append setting. smb.h: Addition of last time password changed entry to account info. smbpass.c: Changes to support last time changed field in smbpasswd file. smbpasswd.c: Changes to support last time changed field in smbpasswd file. util.c: Fix for always overwriting log despite append setting. Jeremy.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 2990a336c57..54bbdfa30ad 100644
--- a/source/lib/util.c
+++ b/source/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);