From mint-bounce@lists.fishpool.fi Mon May 19 07:29:22 2008 X-Virus-Scanned: amavisd-new at demon.co.uk Subject: [MiNT] FreeMiNT kernel patch From: Alan Hourihane To: mint Content-Type: multipart/mixed; boundary="=-t6/otqDBm/+0xQUUN8od" Date: Mon, 19 May 2008 12:21:53 +0100 Message-Id: <1211196113.10285.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --=-t6/otqDBm/+0xQUUN8od Content-Type: text/plain Content-Transfer-Encoding: 7bit It's perfectly possible for a filename to be A::foobar or B::foobar, but the kernel parses this to mean a drive and tries to access the floppy. The attached patch fixes the problem. Alan. --=-t6/otqDBm/+0xQUUN8od Content-Disposition: attachment; filename=freemint.patch Content-Type: text/x-patch; name=freemint.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: sys/filesys.c =================================================================== RCS file: /mint/freemint/sys/filesys.c,v retrieving revision 1.39 diff -u -r1.39 filesys.c --- sys/filesys.c 13 Jul 2007 21:32:48 -0000 1.39 +++ sys/filesys.c 19 May 2008 11:20:27 -0000 @@ -778,7 +778,7 @@ * maybe "/home/ftp" then we should interpret the same filename * now as "/home/ftp/c:/auto". */ - if (path[1] == ':' && !cwd->root_dir) + if (path[2] != ':' && path[1] == ':' && !cwd->root_dir) { char c = tolower ((int)path[0] & 0xff); --=-t6/otqDBm/+0xQUUN8od--