mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
new: devfs删除文件夹
This commit is contained in:
@ -154,7 +154,7 @@ struct vfs_file_t *process_open_exec_file(char *path)
|
||||
if (dentry == NULL)
|
||||
return (void *)-ENOENT;
|
||||
|
||||
if (dentry->dir_inode->attribute == VFS_ATTR_DIR)
|
||||
if (dentry->dir_inode->attribute == VFS_IF_DIR)
|
||||
return (void *)-ENOTDIR;
|
||||
|
||||
filp = (struct vfs_file_t *)kmalloc(sizeof(struct vfs_file_t), 0);
|
||||
|
Reference in New Issue
Block a user