diff --git a/src/sys/include/vfs/vfs.h b/src/sys/include/vfs/vfs.h index 0d899fb..8ba5778 100644 --- a/src/sys/include/vfs/vfs.h +++ b/src/sys/include/vfs/vfs.h @@ -48,7 +48,7 @@ uInt32 size; uInt16 length; uInt32 start; - uInt8 fileName[22]; + uInt8 fileName[512]; char *buffer; uInt32 dirBlock; uInt32 perms; diff --git a/src/sys/vfs/file.c b/src/sys/vfs/file.c index 400b413..c42f844 100644 --- a/src/sys/vfs/file.c +++ b/src/sys/vfs/file.c @@ -165,12 +165,18 @@ char *path = 0x0,*mountPoint = 0x0; /* Allocate Memory For File Descriptor */ tmpFd = (fileDescriptor *)kmalloc(sizeof(fileDescriptor)); + + path = tmpFd->fileName; if (strstr(file,":")) { mountPoint = (char *)strtok((char *)file,":"); - path = strtok(NULL,"\n"); + sprintf(path,strtok(NULL,"\n")); } - else - path = (char *)file; + else { + if (file[0] == '/') + sprintf(path,file); + else + sprintf(path,"/%s",file); + } i = strlen(path); if (i > 2) { @@ -255,6 +261,18 @@ /*** $Log$ + Revision 1.10 2004/07/21 10:02:09 reddawg + devfs: renamed functions + device system: renamed functions + fdc: fixed a few potential bugs and cleaned up some unused variables + strol: fixed definition + endtask: made it print out freepage debug info + kmalloc: fixed a huge memory leak we had some unhandled descriptor insertion so some descriptors were lost + ld: fixed a pointer conversion + file: cleaned up a few unused variables + sched: broke task deletion + kprintf: fixed ogPrintf definition + Revision 1.9 2004/07/18 05:24:15 reddawg Fixens