Sfoglia il codice sorgente

fix chdir for ash's cd (#8824)

xiao-mang 1 anno fa
parent
commit
b50a53129f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      components/dfs/dfs_v2/src/dfs_posix.c

+ 1 - 0
components/dfs/dfs_v2/src/dfs_posix.c

@@ -1180,6 +1180,7 @@ int chdir(const char *path)
         /* this is a not exist directory */
         /* this is a not exist directory */
         dfs_unlock();
         dfs_unlock();
 
 
+        rt_set_errno(-ENOTDIR);
         return -1;
         return -1;
     }
     }