From: Alex Riesen Date: Wed, 24 Sep 2008 11:30:45 GMT Subject: Re: clone fails: Could not get the current working directory Message-ID: <81b0412b0809240430y682d6dd9wef801c33a6ee2f85@mail.gmail.com> In-Reply-To: <48D95C96.4030906@cs.tamu.edu> 2008/9/23 John Freeman : > Alex Riesen wrote: >> 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. So there we are... > http://www.opengroup.org/onlinepubs/009695399/functions/getcwd.html It suggest a rather dubious workaround (calling pwd). > I may get around later to patching this, but for now we're moving ahead with > a workaround. ...but that's a system-inflicted workaround. We just have to do it or something like what it does. General question: What does Sun's pwd do?