Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
66938a1d
Commit
66938a1d
authored
Jun 17, 2007
by
Danny Smith
Committed by
Danny Smith
Jun 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cppfiles.c (open_file): Correct typo.
* cppfiles.c (open_file): Correct typo. From-SVN: r125778
parent
a0c64295
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
libcpp/ChangeLog
+4
-0
libcpp/files.c
+2
-2
No files found.
libcpp/ChangeLog
View file @
66938a1d
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
...
...
libcpp/files.c
View file @
66938a1d
...
...
@@ -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 EACCES
S
. 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
=
EACCES
S
;
errno
=
EACCES
;
}
#endif
else
if
(
errno
==
ENOTDIR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment