RE: Git-daemon messing up permissions for gitweb

From: Post, Mark K <hidden>
Date: 2016-06-15 22:42:29

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help