{"thread":{"id":"4449","subject":"RE: Git-daemon messing up permissions for gitweb","startedAt":"2006-06-09T20:29:17Z","lastAt":"2006-06-09T20:29:17Z","messageCount":1,"participants":["Post, Mark K"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"21491","messageId":"5A14AF34CFF8AD44A44891F7C9FF410507957889@usahm236.amer.corp.eds.com","threadId":"4449","inReplyTo":null,"subject":"RE: Git-daemon messing up permissions for gitweb","fromName":"Post, Mark K","fromEmail":"mark.post@eds.com","sentAt":"2006-06-09T20:29:17Z","receivedAt":"2006-06-09T20:29:17Z","isPatch":false,"sender":{"key":"mark.post@eds.com","avatar":null},"body":"I'm not a C programmer, so I'm not sure exactly how to do what you want.\nIs this right (it compiles)?\n--- shell.c.orig        2006-05-15 16:01:37.000000000 -0400\n+++ shell.c     2006-06-09 16:26:24.619808905 -0400\n@@ -31,7 +31,7 @@\n {\n        char *prog;\n        struct commands *cmd;\n-\n+       umask(0022);\n        /* We want to see \"-c cmd args\", and nothing else */\n        if (argc != 3 || strcmp(argv[1], \"-c\"))\n                die(\"What do you think I am? A shell?\"); \n\nI won't be able to report success or failure today.  Martin's in Germany\nand I think he has a life.\n\n\nMark Post\n\n-----Original Message-----\nFrom: Linus Torvalds [mailto:torvalds@osdl.org] \nSent: Friday, June 09, 2006 4:22 PM\nTo: Post, Mark K\nCc: Junio C Hamano; git@vger.kernel.org\nSubject: RE: Git-daemon messing up permissions for gitweb\n\n\n\nOn Fri, 9 Jun 2006, Post, Mark K wrote:\n>\n> Martin is using git over SSH.  I have git-shell in /etc/passwd for his\n> account.\n\nAhh. git-shell doesn't read .bashrc or anything like that.\n\nDoes adding a \"umask(0022)\" to the beginning of main() in shell.c fix it\n\nfor you?\n\n\t\tLinus\n"}]}