From 97ac4e4b4d53e87d10f0fe026b3b9e577403c4fe Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 13 Nov 2004 12:19:43 +0000 Subject: [PATCH] Open input in read mode instead of read/write mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2058 --- src/shell/shell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index f899dc2e..b53a401c 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell.cpp,v 1.52 2004-11-13 12:04:47 qbix79 Exp $ */ +/* $Id: shell.cpp,v 1.53 2004-11-13 12:19:43 qbix79 Exp $ */ #include #include @@ -128,11 +128,11 @@ void DOS_Shell::ParseLine(char * line) { // if (in || num>1) DOS_DuplicateEntry(0,&old_in); if (in) { - if(DOS_OpenFile(in,2,&dummy)) { //Test if file exists + if(DOS_OpenFile(in,0,&dummy)) { //Test if file exists DOS_CloseFile(dummy); LOG_MSG("SHELL:Redirect input from %s",in); DOS_CloseFile(0); //Close stdin - DOS_OpenFile(in,2,&dummy);//Open new stdin + DOS_OpenFile(in,0,&dummy);//Open new stdin } } if (out){