[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] FreeMiNT kernel patch
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.
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);