mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
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:
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user