View | Details | Raw Unified | Return to bug 202190
Collapse All | Expand All

(-)newsyslog.c (-2 / +8 lines)
Lines 823-831 Link Here
823
	STAILQ_INSERT_TAIL(&inclist, inc, inc_nextp);
823
	STAILQ_INSERT_TAIL(&inclist, inc, inc_nextp);
824
824
825
	STAILQ_FOREACH(inc, &inclist, inc_nextp) {
825
	STAILQ_FOREACH(inc, &inclist, inc_nextp) {
826
		if (strcmp(inc->file, "-") != 0)
826
		if (strcmp(inc->file, "-") != 0) {
827
			struct stat st;
828
829
			if (stat(inc->file, &st) < 0)
830
				err(1, "%s", inc->file);
831
			if (S_ISDIR(st.st_mode))
832
				continue;
827
			f = fopen(inc->file, "r");
833
			f = fopen(inc->file, "r");
828
		else {
834
		} else {
829
			f = stdin;
835
			f = stdin;
830
			inc->file = "<stdin>";
836
			inc->file = "<stdin>";
831
		}
837
		}

Return to bug 202190