From: Junio C Hamano Date: Wed, 01 Nov 2006 16:21:45 GMT Subject: Re: Problem with git-push Message-ID: <7vk62f2l46.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > How about this instead: > > - mkdir(filename, 0777); > - if (adjust_shared_perm(filename)) > + if (!mkdir(filename, 0777) && adjust_shared_perm(filename)) { > + *dir = '/'; > return -2; > + } Not really. See the comment above the code you just touched.