diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 189145c..88c3fac 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -163,6 +163,10 @@ kprintf("Invalid Mode?"); if (!_file) { + + + // XXX - need to handle opening folders with open to figure out why LS isn't working. + /* kprintf( "Not a File Test if Directory?\n" ); _dir = kmalloc( sizeof( FL_DIR ) ); @@ -177,6 +181,7 @@ fd->ino = 0x0; return( 0x1 ); + */ return (0x0); } diff --git a/sys/kernel/vfs_calls.c b/sys/kernel/vfs_calls.c index 231f892..d44e728 100644 --- a/sys/kernel/vfs_calls.c +++ b/sys/kernel/vfs_calls.c @@ -419,9 +419,9 @@ } int kern_openat(struct thread *thr, int afd, char *path, int flags, int mode) { - int error = 0x0; - int fd = 0x0; - struct file *nfp = 0x0; + int error = 0x0; + int fd = 0x0; + struct file *nfp = 0x0; char tmpPath[256]; /* @@ -481,7 +481,7 @@ thr->td_retval[0] = fd; } - kprintf( "error: %i, thr->td_retval[0]: %i\n", error, thr->td_retval[0] ); + //kprintf( "error: %i, thr->td_retval[0]: %i\n", error, thr->td_retval[0] ); //kprintf("sO: 0x%X:%s:", args->mode, args->path, td->td_retval[0]); return (error);