aboutsummaryrefslogtreecommitdiffstats
path: root/src/redo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redo.c')
-rw-r--r--src/redo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/redo.c b/src/redo.c
index b1870db..ef9a32e 100644
--- a/src/redo.c
+++ b/src/redo.c
@@ -13,8 +13,9 @@ int setenv(const char *name, const char *value, int overwrite);
int main(int argc, char *argv[]) {
/* create .redo directory */
- if (mkdir(".redo", 0744))
- fatal(ERRM_MKDIR, ".redo");
+ if (mkdir(".redo/deps", 0744))
+ if (errno != EEXIST) /* TODO: unsafe, dir could be a file or broken symlink */
+ fatal(ERRM_MKDIR, ".redo");
/* set REDO_ROOT */
char *cwd = getcwd(NULL, 0);