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
404ece4e
Commit
404ece4e
authored
May 04, 2005
by
rswindell
Browse files
nopen() didn't set the correct share value if O_TEXT and O_RDONLY open mode
was specified.
parent
91f543d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/sbbs3/nopen.c
src/sbbs3/nopen.c
+6
-3
No files found.
src/sbbs3/nopen.c
View file @
404ece4e
...
...
@@ -49,9 +49,12 @@ int nopen(const char* str, int access)
if
(
access
&
O_DENYNONE
)
{
share
=
SH_DENYNO
;
access
&=~
O_DENYNONE
;
}
else
if
((
access
&~
O_BINARY
)
==
O_RDONLY
)
share
=
SH_DENYWR
;
else
share
=
SH_DENYRW
;
access
&=~
O_DENYNONE
;
}
else
if
((
access
&~
(
O_TEXT
|
O_BINARY
))
==
O_RDONLY
)
share
=
SH_DENYWR
;
else
share
=
SH_DENYRW
;
#if !defined(__unix__)
/* Basically, a no-op on Unix anyway */
if
(
!
(
access
&
O_TEXT
))
...
...
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