diff options
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index dce46c1..b90498d 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -39,7 +39,7 @@ static const char copyright[] = static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; */ static const char rcsid[] = - "$Id: syslogd.c,v 1.14 1996/11/26 02:24:42 peter Exp $"; + "$Id: syslogd.c,v 1.15 1996/11/26 02:35:08 peter Exp $"; #endif /* not lint */ /* @@ -936,10 +936,9 @@ init(signo) switch (f->f_type) { case F_FILE: case F_FORW: - (void)close(f->f_file); - break; case F_CONSOLE: case F_TTY: + (void)close(f->f_file); break; } next = f->f_next; @@ -1161,7 +1160,7 @@ cfline(line, f, prog) case '/': if ((f->f_file = open(p, O_WRONLY|O_APPEND, 0)) < 0) { - f->f_file = F_UNUSED; + f->f_type = F_UNUSED; logerror(p); break; } @@ -1170,7 +1169,6 @@ cfline(line, f, prog) f->f_type = F_CONSOLE; else f->f_type = F_TTY; - close(f->f_file); (void)strcpy(f->f_un.f_fname, p + sizeof _PATH_DEV - 1); } else { (void)strcpy(f->f_un.f_fname, p); |