diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2007-06-17 23:15:58 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2007-06-17 23:15:58 +0000 |
commit | 66938a1d5dd299484051d230b4e450a65b8b15a5 (patch) | |
tree | 937ab6d07f012fef369fd416737c0d02f3eb743e /libcpp | |
parent | a0c6429598d325bd5d615cb717b1494a436a08c5 (diff) | |
download | gcc-66938a1d5dd299484051d230b4e450a65b8b15a5.zip gcc-66938a1d5dd299484051d230b4e450a65b8b15a5.tar.gz gcc-66938a1d5dd299484051d230b4e450a65b8b15a5.tar.bz2 |
cppfiles.c (open_file): Correct typo.
* cppfiles.c (open_file): Correct typo.
From-SVN: r125778
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 4 | ||||
-rw-r--r-- | libcpp/files.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 7ae04d0..21b7248 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2007-06-17 Danny Smith <dannysmith@users.sourceforge.net + + * cppfiles.c (open_file): Correct typo. + 2007-06-16 Vladimir Prus <vladimir@codesourcery.com> * cppfiles.c (open_file): Prevent the call diff --git a/libcpp/files.c b/libcpp/files.c index dbd25f2..e03324b 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) |