瀏覽代碼

[dfs] fix the DEVICE could not get or set flags

tangyuxin 4 年之前
父節點
當前提交
8861202c3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/dfs/src/dfs_file.c

+ 1 - 1
components/dfs/src/dfs_file.c

@@ -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)
         {