diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-24 17:42:26 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-24 17:42:26 -0400 |
| commit | f33e1a367e68b598df6670796cb46a0d49126da2 (patch) | |
| tree | 4c574eb04df2295b0f3ea828e4328f7b2975cdea /src/tomo.c | |
| parent | d4bbf6dadf0d650c822853ea6e079d776d016a9b (diff) | |
Possible fix for making .build/ directory
Diffstat (limited to 'src/tomo.c')
| -rw-r--r-- | src/tomo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -265,7 +265,7 @@ Path_t build_file(Path_t path, const char *extension) { Path_t build_dir = Path$with_component(Path$parent(path), Text(".build")); if (mkdir(Path$as_c_string(build_dir), 0755) != 0) { - if (errno != EEXIST) + if (!Path$is_directory(build_dir, true)) err(1, "Could not make .build directory"); } return Path$with_component(build_dir, Texts(Path$base_name(path), Text$from_str(extension))); |
