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
b69efabc
Commit
b69efabc
authored
May 01, 2003
by
rswindell
Browse files
nopen needed S_IREAD|S_WRITE in sopen() call (whoops).
parent
ca60b3c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+1
-1
src/sbbs3/nopen.c
src/sbbs3/nopen.c
+2
-2
No files found.
src/sbbs3/main.cpp
View file @
b69efabc
...
...
@@ -2513,7 +2513,7 @@ int sbbs_t::nopen(char *str, int access)
else
share
=
SH_DENYRW
;
if
(
!
(
access
&
O_TEXT
))
access
|=
O_BINARY
;
while
(((
file
=
sopen
(
str
,
access
,
share
))
==-
1
)
while
(((
file
=
sopen
(
str
,
access
,
share
,
S_IREAD
|
S_IWRITE
))
==-
1
)
&&
(
errno
==
EACCES
||
errno
==
EAGAIN
)
&&
count
++<
LOOP_NOPEN
)
mswait
(
100
);
if
(
count
>
(
LOOP_NOPEN
/
2
)
&&
count
<=
LOOP_NOPEN
)
{
...
...
src/sbbs3/nopen.c
View file @
b69efabc
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
0
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
3
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
...
...
@@ -54,7 +54,7 @@ int nopen(char *str, int access)
else
share
=
SH_DENYRW
;
if
(
!
(
access
&
O_TEXT
))
access
|=
O_BINARY
;
while
(((
file
=
sopen
(
str
,
access
,
share
))
==-
1
)
while
(((
file
=
sopen
(
str
,
access
,
share
,
S_IREAD
|
S_IWRITE
))
==-
1
)
&&
(
errno
==
EACCES
||
errno
==
EAGAIN
)
&&
count
++<
LOOP_NOPEN
)
if
(
count
)
mswait
(
100
);
...
...
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