diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-09 08:53:02 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-09 08:53:02 +0000 |
commit | b4aa7d78785ed2289ab8657a4022c2751e746494 (patch) | |
tree | 8569c431f8f63fcdca67cae41cb477b421e666ef /gcc/cppfiles.c | |
parent | 2335f848df841213bd9841ea634c750c413dfcb4 (diff) | |
download | gcc-b4aa7d78785ed2289ab8657a4022c2751e746494.tar.gz |
PR preprocessor/11839
* cppfiles.c (open_file): Handle ENOTDIR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70275 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8dcc269d106..4c3608b127c 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -230,6 +230,8 @@ open_file (_cpp_file *file) close (file->fd); file->fd = -1; } + else if (errno == ENOTDIR) + errno = ENOENT; file->err_no = errno; |