diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-17 23:15:58 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-17 23:15:58 +0000 |
commit | 909dc3030762da210a8341e9d299af1448d83a21 (patch) | |
tree | 937ab6d07f012fef369fd416737c0d02f3eb743e /libcpp/files.c | |
parent | 8373dacdfeb9b86e98222fb43d0a1d994f2d53a1 (diff) |
* cppfiles.c (open_file): Correct typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125778 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index dbd25f272031..e03324b2e4fa 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -234,14 +234,14 @@ open_file (_cpp_file *file) /* On most UNIX systems, open succeeds on a directory. Above, we check if we have opened a directory and if so, set errno to ENOENT. However, on Windows, opening a directory - fails with EACCESS. We want to return ENOENT in that + fails with EACCES. We want to return ENOENT in that case too. */ if (stat (file->path, &file->st) == 0 && S_ISDIR (file->st.st_mode)) errno = ENOENT; else /* The call to stat may have reset errno. */ - errno = EACCESS; + errno = EACCES; } #endif else if (errno == ENOTDIR) |