My posts here arrive back to me with a great delay of a couple of days (!) but I hope it improves!
But this one arrived almost instantly! Where is the other one about the Borland build though?! :-(
EJECT.EXE from PC-DOS 7 (2000) works on MS-DOS 7.10 but not in our current kernel. EJECT H: says "Invalid drive". [...] My conclusion is that while MS-DOS doesn't try to open a H:CON file but opens the CD-ROM device driver instead, which succeeds, FreeDOS tries to access a H:CON file on the CD-ROM and fails. I suspect the dosfns.c:IsDevice() function. It probably "thinks" that this is a filename and the kernel tries to open it as a filename, whereas it should detect this as a device and the kernel must then open H:.
I was slightly wrong. My conclusion was right, but the bug turned out to be not in IsDevice() but in DosOpenSft() function in the same dosfns.c file. Here's a patch that fixes it. It also fixes the "CHKDSK I:" and "SCANDISK I:" "Invalid drive" bugs (not reported yet) where I: is a RAM disk. I added it to my patch collection at http://linux.tu-varna.acad.bg/~lig/freedos/CVSPATCH.TXT
Lucho
diff -ruN cvs/kernel/kernel/dosfns.c src/kernel/kernel/dosfns.c --- cvs/kernel/kernel/dosfns.c 2004-01-27 20:07:26.000000000 +0200 +++ src/kernel/kernel/dosfns.c 2004-02-05 13:16:22.000000000 +0200 @@ -538,7 +538,7 @@ sftp->sft_shroff = -1; /* /// Added for SHARE - Ron Cemer */ sftp->sft_attrib = attrib = attrib | D_ARCHIVE;
- if (result & IS_NETWORK)
+ if ((result & IS_NETWORK) && !(result & IS_DEVICE))
{
int status;
if ((flags & (O_TRUNC | O_CREAT)) == O_CREAT)
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
