mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
rename: An inode with no operations should be treated like a directory for the purposes of rename
This commit is contained in:
+2
-2
@@ -117,10 +117,10 @@ next_subdir:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* We found it and it appears to be a "normal" inode. Is it a
|
/* We found it and it appears to be a "normal" inode. Is it a
|
||||||
* directory (i.e, an inode with children)?
|
* directory (i.e, an operation-less inode or an inode with children)?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (newinode->i_child != NULL)
|
if (newinode->u.i_ops == NULL || newinode->i_child != NULL)
|
||||||
{
|
{
|
||||||
FAR char *subdirname;
|
FAR char *subdirname;
|
||||||
FAR char *tmp;
|
FAR char *tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user