From: Post, Mark K Date: Fri, 09 Jun 2006 20:29:17 GMT Subject: RE: Git-daemon messing up permissions for gitweb 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