Re: [PATCH] Introduce core.sharedrepository
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 22, 2005, 23:04 UTC
- Message-ID
- <Pine.LNX.4.63.0512230003560.12795@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.63.0512222356540.12681@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,
On Thu, 22 Dec 2005, Johannes Schindelin wrote:
Show 9 quoted lines
> 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