X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=isolate%2Fisolate.c;h=b1590bde25000d6ec9e5b27528e41d21ace60396;hb=e164913cd68dcb6cead16cc8b545826d85119b74;hp=779ba199ddd38d2c80025877484ffae6acac5b49;hpb=cb57be02c9d15064992acd7ff4f87e9dd1487240;p=moe.git diff --git a/isolate/isolate.c b/isolate/isolate.c index 779ba19..b1590bd 100644 --- a/isolate/isolate.c +++ b/isolate/isolate.c @@ -485,14 +485,7 @@ static void make_dir(char *path) if (sep) *sep = 0; - if (dir_exists(path)) - { - if (sep) - *sep = '/'; - return; - } - - if (mkdir(path, 0777) < 0) + if (!dir_exists(path) && mkdir(path, 0777) < 0) die("Cannot create directory %s: %m\n", path); if (!sep)