diff options
Diffstat (limited to 'filesystem/dfs/src')
| -rw-r--r-- | filesystem/dfs/src/dfs_raw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/filesystem/dfs/src/dfs_raw.c b/filesystem/dfs/src/dfs_raw.c index 7a4f1cbc4a..89cb8abd05 100644 --- a/filesystem/dfs/src/dfs_raw.c +++ b/filesystem/dfs/src/dfs_raw.c @@ -208,7 +208,11 @@ int dfile_raw_open(struct dfs_fd* fd, const char *path, int flags) }
fd->flags |= DFS_F_OPEN;
- if ( flags & DFS_O_DIRECTORY ) fd->flags |= DFS_F_DIRECTORY;
+ if ( flags & DFS_O_DIRECTORY )
+ {
+ fd->type = FT_DIRECTORY;
+ fd->flags |= DFS_F_DIRECTORY;
+ }
dfs_log(DFS_DEBUG_INFO, ("open successful"));
return 0;
|
