From: John Freeman Date: Tue, 23 Sep 2008 21:16:06 GMT Subject: Re: clone fails: Could not get the current working directory Message-ID: <48D95C96.4030906@cs.tamu.edu> In-Reply-To: <81b0412b0809230801l2e6b1a71v1210317fe636aeba@mail.gmail.com> Alex Riesen wrote: > I actually expected "ls -R" giving error about unable to read the > directory (permissions). This worked. > Again: try a simple program which just does getpwd for this pathname From what I gather, getpwd() is in libiberty, which I didn't feel like messing with for this example. I ran a small test program that called getcwd() in the repo directory, and it failed. errno was set to EACCES, indicating insufficient permissions. http://www.opengroup.org/onlinepubs/009695399/functions/getcwd.html I may get around later to patching this, but for now we're moving ahead with a workaround. - John