diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-28 02:34:37 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-28 02:34:37 +0200 |
| commit | 822ff99e6f6a5c8ad7309a535d384d354b2d326e (patch) | |
| tree | af4774d4846ea340d351fd6c9bb4f5ab2606eb7c | |
| parent | ba58914cb1476b94d1b6b2e42bc12471c37ea6b3 (diff) | |
| -rw-r--r-- | posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ int mkdir_r_port(const char *const dir, const int flags) if (stat(dir, &sb)) return -1; - else if (!(sb.st_mode & S_IFDIR)) + else if (!S_ISDIR(sb.st_mode)) { errno = ENOTDIR; return -1; |
