umount and fat fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@227 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-05-14 11:12:09 +00:00
parent 11073f798f
commit b94766ca8f
7 changed files with 116 additions and 27 deletions
+2 -2
View File
@@ -112,9 +112,9 @@ STATUS inode_remove(const char *path)
FAR struct inode *left;
FAR struct inode *parent;
if (*path && path[0] == '/')
if (!*path || path[0] != '/')
{
return ERROR;
return -EINVAL;
}
/* Find the node to delete */