aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libc/unistd.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-16 15:59:46 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-16 15:59:46 +0200
commit3d6a857b9186ef6304ea6cf04627c2b787169f29 (patch)
tree756179ce1e1838f75c57e3efec2a570d72051594 /src/lib/libc/unistd.c
parent59000174aa50ed6b2d24a71576d15e6a53c5be0c (diff)
downloadkogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.tar.gz
kogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.zip
Make way for libc implementation
Diffstat (limited to 'src/lib/libc/unistd.c')
-rw-r--r--src/lib/libc/unistd.c2
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);