diff options
Diffstat (limited to 'userspace/fsh.c')
| -rw-r--r-- | userspace/fsh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/userspace/fsh.c b/userspace/fsh.c index 85fc5e4..17a3942 100644 --- a/userspace/fsh.c +++ b/userspace/fsh.c @@ -19,7 +19,7 @@ #include <string.h> #include <errno.h> #include <string.h> -#include "interface/fs.h" +#include <sys/dirent.h> extern char **environ; @@ -320,8 +320,7 @@ bool cd(char *path) } // check if exists - fs_dirent dirs; - if(-1==_readdir(buf,&dirs,0)) + if(NULL==opendir(buf)) { printf("directory not found!\n"); return false; |
