#65293# build breaks if a directory is wrongly taken for searched include

This commit is contained in:
Hans-Joachim Lankenau 2001-11-22 14:58:59 +00:00
parent 0ea25eca73
commit 2ab54ac84d

View file

@ -442,7 +442,9 @@ struct filepointer *getfile(file)
fatalerr("cannot allocate mem\n");
size_backup = st.st_size;
if ((st.st_size = read(fd, content->f_base, size_backup)) < 0)
fatalerr("failed to read %s\n", file);
if ( st.st_mode & S_IFREG )
fatalerr("failed to read %s\n", file);
close(fd);
content->f_len = st.st_size+1;
content->f_p = content->f_base;