|
Message
From: cvs at opencores.org<cvs@o...>
Date: Sat May 26 21:31:46 CEST 2007
Subject: [cvs-checkins] MODIFIED: mlite ...
Date: 00/07/05 26:21:31 Modified: mlite/kernel filesys.c Log: Permit "" to open root directory Revision Changes Path 1.2 mlite/kernel/filesys.c http://www.opencores.org/cvsweb.shtml/mlite/kernel/filesys.c.diff?r1=1.1&r2=1.2 (In the diff below, changes in quantity of whitespace are not shown.) Index: filesys.c =================================================================== RCS file: /cvsroot/rhoads/mlite/kernel/filesys.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- filesys.c 20 May 2007 00:00:11 -0000 1.1 +++ filesys.c 26 May 2007 19:31:46 -0000 1.2 @@ -388,7 +388,7 @@ file = (OS_FILE*)malloc(sizeof(OS_FILE)); if(file == NULL) return NULL; - if(strcmp(name, "/") == 0) + if(name[0] == 0 || strcmp(name, "/") == 0) { FileOpen(file, NULL, NULL); return file;
|
 |