Index: newsyslog.c =================================================================== --- newsyslog.c (revision 286461) +++ newsyslog.c (working copy) @@ -823,9 +823,15 @@ STAILQ_INSERT_TAIL(&inclist, inc, inc_nextp); STAILQ_FOREACH(inc, &inclist, inc_nextp) { - if (strcmp(inc->file, "-") != 0) + if (strcmp(inc->file, "-") != 0) { + struct stat st; + + if (stat(inc->file, &st) < 0) + err(1, "%s", inc->file); + if (S_ISDIR(st.st_mode)) + continue; f = fopen(inc->file, "r"); - else { + } else { f = stdin; inc->file = ""; }