re-stat directory after creating it
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 27 Nov 2006 11:13:05 +0000 (11:13 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 27 Nov 2006 11:13:05 +0000 (11:13 +0000)
- no need tu run bkserver twice if some maildir directory does not exist

org.glite.lb.common/src/lb_maildir.c

index 126cb3e..a37db36 100644 (file)
@@ -36,6 +36,7 @@ static int check_mkdir(const char *dir)
        if ( stat(dir, &sbuf) ) {
                if ( errno == ENOENT ) {
                        if ( mkdir(dir, S_IRWXU) ) return 1;
+                       if ( stat(dir, &sbuf) )  return 1;
                }
                else return 1;
        }