aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libkogata/unistd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libkogata/unistd.c')
-rw-r--r--src/lib/libkogata/unistd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libkogata/unistd.c b/src/lib/libkogata/unistd.c
index 80a32e4..101e02e 100644
--- a/src/lib/libkogata/unistd.c
+++ b/src/lib/libkogata/unistd.c
@@ -24,7 +24,7 @@ int chdir(const char* path) {
stat_t st;
if (!stat(cwd_buf2, &st)) return -1;
- if (!st.type & FT_DIR) return -1;
+ if (!(st.type & FT_DIR)) return -1;
strcpy(cwd_buf, cwd_buf2);
return 0;