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
60ecfb1b
Commit
60ecfb1b
authored
Jul 31, 2008
by
Jakub Jelinek
Committed by
Jakub Jelinek
Jul 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mkstemps.c (mkstemps): Keep looping even for EISDIR.
From-SVN: r138436
parent
1ea5e949
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
libiberty/ChangeLog
+4
-0
libiberty/mkstemps.c
+5
-1
No files found.
libiberty/ChangeLog
View file @
60ecfb1b
2008-07-31 Jakub Jelinek <jakub@redhat.com>
* mkstemps.c (mkstemps): Keep looping even for EISDIR.
2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
* mkstemps.c (mkstemps): If open failed with errno other than
* mkstemps.c (mkstemps): If open failed with errno other than
...
...
libiberty/mkstemps.c
View file @
60ecfb1b
...
@@ -127,7 +127,11 @@ mkstemps (char *pattern, int suffix_len)
...
@@ -127,7 +127,11 @@ mkstemps (char *pattern, int suffix_len)
if
(
fd
>=
0
)
if
(
fd
>=
0
)
/* The file does not exist. */
/* The file does not exist. */
return
fd
;
return
fd
;
if
(
errno
!=
EEXIST
)
if
(
errno
!=
EEXIST
#ifdef EISDIR
&&
errno
!=
EISDIR
#endif
)
/* Fatal error (EPERM, ENOSPC etc). Doesn't make sense to loop. */
/* Fatal error (EPERM, ENOSPC etc). Doesn't make sense to loop. */
break
;
break
;
...
...
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