From: Johannes Schindelin Date: Thu, 22 Dec 2005 23:04:40 GMT Subject: Re: [PATCH] Introduce core.sharedrepository Message-ID: In-Reply-To: Hi, On Thu, 22 Dec 2005, Johannes Schindelin wrote: > if (mkdir(path, 0777) < 0) > if (errno != EEXIST) { > *pos = '/'; > return -1; > } > else if (shared_repository && make_group_writable(path)) { > *pos = '/'; > return -2; > } D'oh! Time to head to bed now: if (mkdir(path, 0777) < 0) { if (errno != EEXIST) { *pos = '/'; return -1; } } else if (shared_repository && make_group_writable(path)) { *pos = '/'; return -2; } Ciao, Dscho