Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git] / lunaix-os / kernel / fs / vfs.c
index 4ec74b402208c7cedd9f12c82f076dc4e41e164e..c59584ac57b51b4dea0c53660d5ebb589d2d7134 100644 (file)
@@ -1337,7 +1337,7 @@ __DEFINE_LXSYSCALL2(char*, getcwd, char*, buf, size_t, size)
     ret_ptr = buf;
 
 done:
     ret_ptr = buf;
 
 done:
-    __current->k_status = errno;
+    syscall_result(errno);
     return ret_ptr;
 }
 
     return ret_ptr;
 }