diff options
| author | Bernard Xiong <[email protected]> | 2015-01-29 09:14:12 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-01-29 09:14:12 +0000 |
| commit | 7f4e647971a8bef8ed10204daa58ed55cc2936c1 (patch) | |
| tree | 6823a2f8c84c1b5dff1850afa87ca265e9b88958 /components/dfs/src/dfs.c | |
| parent | 068e2f95a1483ae26a57949b4d04ef51629d4c5d (diff) | |
| parent | aaacd40425212ad2fab9bf31138f2e3a004b73e4 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/dfs/src/dfs.c')
| -rw-r--r-- | components/dfs/src/dfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 4e38615ba7..7e56137aba 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -234,7 +234,11 @@ int fd_is_open(const char *pathname) mountpath = fullpath + strlen(fs->path); dfs_lock(); +#ifdef DFS_USING_STDIO + for (index = 3; index < DFS_FD_MAX+3; index++) +#else for (index = 0; index < DFS_FD_MAX; index++) +#endif { fd = &(fd_table[index]); if (fd->fs == RT_NULL) |
