Skip to content
Snippets Groups Projects
Commit 3de86733 authored by rswindell's avatar rswindell
Browse files

Have printfile() and printtail() open the file in "deny none" share mode,

for Deuce. :-)
parent 586679ed
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ void sbbs_t::printfile(char *str, long mode)
if(!(mode&P_NOCRLF) && !tos && !wip && !rip && !html)
CRLF;
if((stream=fnopen(&file,str,O_RDONLY))==NULL) {
if((stream=fnopen(&file,str,O_RDONLY|O_DENYNONE))==NULL) {
lprintf(LOG_NOTICE,"Node %d !Error %d (%s) opening: %s"
,cfg.node_num,errno,strerror(errno),str);
bputs(text[FileNotFound]);
......@@ -134,7 +134,7 @@ void sbbs_t::printtail(char *str, int lines, long mode)
if(!tos) {
CRLF;
}
if((file=nopen(str,O_RDONLY))==-1) {
if((file=nopen(str,O_RDONLY|O_DENYNONE))==-1) {
lprintf(LOG_NOTICE,"Node %d !Error %d (%s) opening: %s"
,cfg.node_num,errno,strerror(errno),str);
bputs(text[FileNotFound]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment