diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-16 15:59:46 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-16 15:59:46 +0200 |
commit | 3d6a857b9186ef6304ea6cf04627c2b787169f29 (patch) | |
tree | 756179ce1e1838f75c57e3efec2a570d72051594 /src/lib/libc/unistd.c | |
parent | 59000174aa50ed6b2d24a71576d15e6a53c5be0c (diff) | |
download | kogata-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.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); |