From 2ab54ac84d5ffe9894be90849dfeb48234668681 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Lankenau Date: Thu, 22 Nov 2001 14:58:59 +0000 Subject: [PATCH] #65293# build breaks if a directory is wrongly taken for searched include --- soltools/mkdepend/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index 6a366e018132..2f822f3bda2b 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -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;