git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: clone fails: Could not get the current working directory

From
Alex Riesen <raa.lkml@gmail.com>
Date
Sep 24, 2008, 11:30 UTC
Message-ID
<81b0412b0809240430y682d6dd9wef801c33a6ee2f85@mail.gmail.com>
In-Reply-To
<48D95C96.4030906@cs.tamu.edu>
2008/9/23 John Freeman <jfreeman@cs.tamu.edu>:
Show 7 quoted lines
> 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?
Previous: John FreemanNext: John Freeman
Message 8 of 12 in “clone fails: Could not get the current working directory”
  1. John FreemanSep 21, 2008
  2. Alex RiesenSep 23, 2008
  3. John FreemanSep 23, 2008
  4. Alex RiesenSep 23, 2008
  5. John FreemanSep 23, 2008
  6. Alex RiesenSep 23, 2008
  7. John FreemanSep 23, 2008
  8. Alex RiesenSep 24, 2008
  9. John FreemanSep 24, 2008
  10. Alex RiesenSep 24, 2008
  11. John FreemanSep 21, 2008
  12. John FreemanSep 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.