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

Re: [4/5] Add option for hardlinkable cache of extracted blobs

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 17, 2005, 20:03 UTC
Message-ID
<Pine.LNX.4.21.0504171600310.30848-100000@iabervon.org>
In-Reply-To
<20050417195935.GI1461@pasky.ji.cz>
On Sun, 17 Apr 2005, Petr Baudis wrote:
Show 9 quoted lines
> Dear diary, on Sun, Apr 17, 2005 at 09:25:17PM CEST, I got a letter
> where Paul Jackson <pj@sgi.com> told me that...
> > Petr wrote:
> > > BTW, I'd just use access(F_OK) instead of stat() it I don't care about
> > 
> > I recommend _only_ using it when you require exactly the above real vs.
> > effective id behaviour.
> 
> Does this distinction have any effect when doing F_OK?
Actually, the documentation I've got says:
"F_OK requests checking whether merely testing for the existence of the
 file would be allowed (this depends on the permissions of the directories
 in the path to the file, as given in path-name.)"

So it shouldn't complain about a filename which you're allowed to try to stat, even if there's nothing there. And it would depend on the privs of the wrong user in looking at the path.

	-Daniel
*This .sig left intentionally blank*
Previous: Petr BaudisNext: Petr Baudis
Message 2 of 10 in “Re: [4/5] Add option for hardlinkable cache of extracted blobs”
  1. Petr BaudisApr 17, 2005
  2. Daniel BarkalowApr 17, 2005
  3. Petr BaudisApr 17, 2005
  4. Paul JacksonApr 18, 2005
  5. Petr BaudisApr 18, 2005
  6. Paul JacksonApr 18, 2005
  7. Russell KingApr 17, 2005
  8. First ever real kernel git merge!Linus Torvalds, Apr 17, 2005
  9. Paul JacksonApr 18, 2005
  10. Paul JacksonApr 18, 2005

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.