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

RE: Git-daemon messing up permissions for gitweb

From
PKPost, Mark K <mark.post@eds.com>
Date
Jun 9, 2006, 20:29 UTC
Message-ID
<5A14AF34CFF8AD44A44891F7C9FF410507957889@usahm236.amer.corp.eds.com>

I'm not a C programmer, so I'm not sure exactly how to do what you want. Is this right (it compiles)? --- shell.c.orig 2006-05-15 16:01:37.000000000 -0400 +++ shell.c 2006-06-09 16:26:24.619808905 -0400

@@ -31,7 +31,7 @@
 {
        char *prog;
        struct commands *cmd;
-
+       umask(0022);
        /* We want to see "-c cmd args", and nothing else */
        if (argc != 3 || strcmp(argv[1], "-c"))
                die("What do you think I am? A shell?"); 

I won't be able to report success or failure today.  Martin's in Germany
and I think he has a life.


Mark Post

-----Original Message-----
From: Linus Torvalds [mailto:torvalds@osdl.org] 
Sent: Friday, June 09, 2006 4:22 PM
To: Post, Mark K
Cc: Junio C Hamano; git@vger.kernel.org
Subject: RE: Git-daemon messing up permissions for gitweb



On Fri, 9 Jun 2006, Post, Mark K wrote:
>
> Martin is using git over SSH.  I have git-shell in /etc/passwd for his
> account.

Ahh. git-shell doesn't read .bashrc or anything like that.

Does adding a "umask(0022)" to the beginning of main() in shell.c fix it

for you?

		Linus
Message 1 of 1 in “RE: Git-daemon messing up permissions for gitweb”
  1. Post, Mark KJun 9, 2006

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.