]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cppfiles.c (open_file): Correct typo.
authorDanny Smith <dannysmith@users.sourceforge.net>
Sun, 17 Jun 2007 23:15:58 +0000 (23:15 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Sun, 17 Jun 2007 23:15:58 +0000 (23:15 +0000)
* cppfiles.c (open_file): Correct typo.

From-SVN: r125778

libcpp/ChangeLog
libcpp/files.c

index 7ae04d07866aa581ebaf972b47887dbb3f940c92..21b72482a740a4c7bee469e1e2a0177ca4aa0a84 100644 (file)
@@ -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
index dbd25f2720311a7eb29f93624938c8327308e10f..e03324b2e4fa8228f55ab5b517d23ca5a86e1e2a 100644 (file)
@@ -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)