diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-04-11 19:47:05 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-04-11 19:47:05 +0000 |
commit | 45bab89362ebe122d60d5e9b1e2b949b26168db3 (patch) | |
tree | c430eb677a06d8c823fd1d2d4a9f7790c0c275d2 /sys/src/boot | |
parent | 05569f6f2c54a19c1c85a7f10742913cd8904787 (diff) |
livecd
Diffstat (limited to 'sys/src/boot')
-rw-r--r-- | sys/src/boot/pc/iso.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/src/boot/pc/iso.c b/sys/src/boot/pc/iso.c index 9f0d010aa..1d6bea2b7 100644 --- a/sys/src/boot/pc/iso.c +++ b/sys/src/boot/pc/iso.c @@ -71,7 +71,7 @@ close(void *f) static int isowalk(Extend *ex, int drive, char *path) { - char name[Maxpath], pad, *end; + char name[Maxpath], c, *end; int i; Dir d; @@ -97,8 +97,16 @@ isowalk(Extend *ex, int drive, char *path) break; i = d.dirlen - (Dirsz + d.namelen); while(i-- > 0) - read(ex, &pad, 1); - name[d.namelen] = 0; + read(ex, &c, 1); + for(i=0; i<d.namelen; i++){ + c = name[i]; + if(c >= 'A' && c <= 'Z'){ + c -= 'A'; + c += 'a'; + } + name[i] = c; + } + name[i] = 0; while(*path == '/') path++; if((end = strchr(path, '/')) == 0) |