diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-10-10 19:46:42 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-10-10 19:46:42 +0000 |
commit | 1f340e9b7f0f585e7e6c48bf6605a7e7e6d756b3 (patch) | |
tree | 156b4460a04a2c4f5ca076dcb9a1bc2db7471173 /daemon.c | |
parent | c0daf0ad02e41029964f3a307bd8b9558477a7c7 (diff) | |
download | fetchmail-1f340e9b7f0f585e7e6c48bf6605a7e7e6d756b3.tar.gz fetchmail-1f340e9b7f0f585e7e6c48bf6605a7e7e6d756b3.tar.bz2 fetchmail-1f340e9b7f0f585e7e6c48bf6605a7e7e6d756b3.zip |
Repair --logfile, broken in 6.3.5. BerliOS Bug #9059,
reported by Brian Harring.
svn path=/branches/BRANCH_6-3/; revision=4923
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -218,10 +218,9 @@ nottyDetach: if ((logfd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666)) < 0) { /* stdout */ report(stderr, "cannot open %s: %s\n", logfile, strerror(errno)); return PS_IOERR; - } else - logfd = 0; /* use /dev/null */ + } } else - logfd = 0; /* this is /dev/null */ + logfd = 0; /* else use /dev/null */ /* Close any/all open file descriptors */ #if defined(HAVE_GETDTABLESIZE) |