From 3de8673362ba3d5aed389a399eceee40173b97cf Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 26 Feb 2008 08:21:10 +0000 Subject: [PATCH] Have printfile() and printtail() open the file in "deny none" share mode, for Deuce. :-) --- src/sbbs3/prntfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/prntfile.cpp b/src/sbbs3/prntfile.cpp index ccf8e33918..c0f1a26166 100644 --- a/src/sbbs3/prntfile.cpp +++ b/src/sbbs3/prntfile.cpp @@ -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]); -- GitLab