diff options
| author | Bernard Xiong <[email protected]> | 2018-11-22 22:44:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-22 22:44:46 +0800 |
| commit | 6445328accc3570cb4b5d1394765074a29f4385d (patch) | |
| tree | 9806ccc0627c400a3fab8dcc3b5d8f6e2490268d /components/dfs/src | |
| parent | 8cc81af1f651e275b7d812399eafe4bfb4e047e1 (diff) | |
| parent | 94a2e751a57938c43cba54b5eb1ac00fd3716ed4 (diff) | |
Merge pull request #1999 from jesven/smp_4.0
Smp 4.0
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs_posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c index 97531ad59c..f47a60ee5d 100644 --- a/components/dfs/src/dfs_posix.c +++ b/components/dfs/src/dfs_posix.c @@ -890,9 +890,9 @@ int access(const char *path, int amode) char *getcwd(char *buf, size_t size) { #ifdef DFS_USING_WORKDIR - rt_enter_critical(); + dfs_lock(); strncpy(buf, working_directory, size); - rt_exit_critical(); + dfs_unlock(); #else rt_kprintf(NO_WORKING_DIR); #endif |
