Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
ab09750b
Commit
ab09750b
authored
Apr 26, 2002
by
rswindell
Browse files
Added fix-up for improper use of fnopen (O_CREAT|O_WRONLY).
parent
30ac4be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/sbbs3/nopen.c
src/sbbs3/nopen.c
+4
-0
No files found.
src/sbbs3/nopen.c
View file @
ab09750b
...
...
@@ -70,6 +70,10 @@ FILE* DLLCALL fnopen(int *fd, char *str, int access)
int
file
;
FILE
*
stream
;
if
(
access
&
O_CREAT
&&
access
&
O_WRONLY
)
{
/* not compatible with fdopen */
access
&=~
O_WRONLY
;
access
|=
O_RDWR
;
}
if
((
file
=
nopen
(
str
,
access
))
==-
1
)
return
(
NULL
);
...
...
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