diff options
Diffstat (limited to 'src/lib/libc/unistd.c')
-rw-r--r-- | src/lib/libc/unistd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libc/unistd.c b/src/lib/libc/unistd.c index 5ae1735..f5a7a3c 100644 --- a/src/lib/libc/unistd.c +++ b/src/lib/libc/unistd.c @@ -22,7 +22,7 @@ int chdir(const char* path) { if (!pathncat(cwd_buf2, path, 256)) return -1; stat_t st; - if (!stat(cwd_buf2, &st)) return -1; + if (!sc_stat(cwd_buf2, &st)) return -1; if (!(st.type & FT_DIR)) return -1; strcpy(cwd_buf, cwd_buf2); |