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

Re: Careful object writing..

From
Junio C Hamano <junkio@cox.net>
Date
May 3, 2005, 23:22 UTC
Message-ID
<7vr7gnsxma.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<81b0412b05050316045fa31c2a@mail.gmail.com>
>>>>> "AR" == Alex Riesen <raa.lkml@gmail.com> writes:
AR> On 5/3/05, Linus Torvalds <torvalds@osdl.org> wrote:
>> I also change the permission to 0444 before it gets its final name.
AR> Maybe umask it first? Just in case.

In general worrying about umask when you see chmod is a good practice, but it probably is not applicable to this particular case. A person with umask 077 should still get 0444 if the SHA1_FILE_DIRECTORY is shared with other people, and if it is not shared, his initial git-init-db would have made it 0700, so it does not matter it the files files underneath it have 0444.

Previous: Alex RiesenNext: Daniel Barkalow
Message 16 of 19 in “Careful object writing..”
  1. Linus TorvaldsMay 3, 2005
  2. Chris WedgwoodMay 3, 2005
  3. Linus TorvaldsMay 3, 2005
  4. Chris WedgwoodMay 3, 2005
  5. Linus TorvaldsMay 3, 2005
  6. Daniel BarkalowMay 3, 2005
  7. Jan HarkesMay 3, 2005
  8. Linus TorvaldsMay 3, 2005
  9. Jan HarkesMay 3, 2005
  10. Linus TorvaldsMay 3, 2005
  11. Linus TorvaldsMay 3, 2005
  12. H. Peter AnvinMay 3, 2005
  13. Alex RiesenMay 3, 2005
  14. Linus TorvaldsMay 3, 2005
  15. Alex RiesenMay 3, 2005
  16. Junio C HamanoMay 3, 2005
  17. Careful object pullingDaniel Barkalow, May 4, 2005
  18. Morten WelinderMay 4, 2005
  19. Daniel BarkalowMay 4, 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.