Browse Source

Fixup load (usb0,0) command when the usb device is fat filesystem.

Change-Id: Ie8dfdafd6d0c43e9a9a9e2a7610ba8c7b0ddd20d
master
lixuefeng 8 years ago
parent
commit
c0fce206d2
  1. 3
      lib/libc/open.c

3
lib/libc/open.c

@ -131,6 +131,9 @@ open(filename, mode)
if (strncmp (dname, "/dev/", 5) == 0) {
dname += 5;
//printf("tname:%s dname:%s\n",tname,dname);
/* change command from /dev/fat/disk or /dev/fat/ram
* TO /dev/fs/fat or /dev/fs/ram */
fat_support(fnamelen, dname);
i = __try_open(tname, mode, dname, lu, 0);
free(fname);
return i;

Loading…
Cancel
Save