diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -370,7 +370,7 @@ int open(const char *pathname, int flags, ...) exist = (stat(path, &s) == 0) ? 1 : 0; - if (exist && (s.st_mode & S_IFDIR)) { + if (exist && S_ISDIR(s.st_mode)) { errno = -EISDIR; goto out1; } |