diff --git a/sys/kernel/vfs_calls.c b/sys/kernel/vfs_calls.c index 5226ead..147e2ce 100644 --- a/sys/kernel/vfs_calls.c +++ b/sys/kernel/vfs_calls.c @@ -422,6 +422,7 @@ int error = 0x0; int fd = 0x0; struct file *nfp = 0x0; + char tmpPath[256]; /* * Only one of the O_EXEC, O_RDONLY, O_WRONLY and O_RDWR flags @@ -450,6 +451,20 @@ nfp->f_flag = flags & FMASK; + if( path[0] == '.' ) { + + printf( tmpPath, "%s", _current->oInfo.cwd ); + + } else { + + sprintf( tmpPath, "%s", path); + + } + + // XXX - Temp Hack For . path name + path = &tmpPath; + + nfp->fd = fopen(path, "rwb"); kprintf("[%s:%i] o(%s)%i", __FILE__, __LINE__, path, fd);