--- syslogd.c.old Fri Oct 26 15:45:24 2001 +++ syslogd.c Fri Oct 26 15:45:44 2001 @@ -1588,7 +1588,6 @@ untty(); fprintlog(f, (char *)from, flags, msg); (void) close(f->f_file); - f->f_file = -1; } #ifndef SYSV (void) sigsetmask(omask); @@ -1819,11 +1818,6 @@ v->iov_len = 1; } again: - /* f->f_file == -1 is an indicator that the we couldn't - open the file at startup. */ - if (f->f_file == -1) - break; - if (writev(f->f_file, iov, 6) < 0) { int e = errno; @@ -2354,8 +2348,6 @@ case F_TTY: case F_CONSOLE: printf("%s", f->f_un.f_fname); - if (f->f_file == -1) - printf(" (unused)"); break; case F_FORW: @@ -2613,7 +2605,7 @@ } if ( f->f_file < 0 ){ - f->f_file = -1; + f->f_type = F_UNUSED; dprintf("Error opening log file: %s\n", p); logerror(p); break;