mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:57:06 +08:00
[dfs] fix the DEVICE could not get or set flags
This commit is contained in:
parent
38931765d1
commit
8861202c3b
@ -157,7 +157,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
|
||||
return -EINVAL;
|
||||
|
||||
/* regular file system fd */
|
||||
if (fd->type == FT_REGULAR)
|
||||
if (fd->type == FT_REGULAR || fd->type == FT_DEVICE)
|
||||
{
|
||||
switch (cmd)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user