{"thread":{"id":"2725","subject":"Segmentation fault in git-shell & symlink instead of script post-update in git repository","startedAt":"2005-12-01T19:17:09Z","lastAt":"2005-12-01T19:17:09Z","messageCount":1,"participants":["Majkls"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"13056","messageId":"438F4C35.6000605@tiscali.cz","threadId":"2725","inReplyTo":null,"subject":"Segmentation fault in git-shell & symlink instead of script post-update in git repository","fromName":"Majkls","fromEmail":"majkls@tiscali.cz","sentAt":"2005-12-01T19:17:09Z","receivedAt":"2005-12-01T19:17:09Z","isPatch":false,"sender":{"key":"majkls@tiscali.cz","avatar":null},"body":"Hello,\nwhen I tried to install git, I found some bug in git-shell (shell.c). If\nyou don't give two parameters in argv[2], program ends by segfault.\nThere is a problem solution.\n\n*** shell.c     2005-11-26 01:35:20.000000000 +0100\n--- shell.c.new 2005-12-01 19:42:29.000000000 +0100\n*************** int main(int argc, char **argv)\n*** 42,48 ****\n                char *arg;\n                if (strncmp(cmd->name, prog, len))\n                        continue;\n!               arg = NULL;\n                switch (prog[len]) {\n                case '\\0':\n                        arg = NULL;\n--- 42,48 ----\n                char *arg;\n                if (strncmp(cmd->name, prog, len))\n                        continue;\n!               arg = \"\";\n                switch (prog[len]) {\n                case '\\0':\n                        arg = NULL;\n\nI have /home/scm mounted as noexec. I had a problem with post-update. I\nremove it and replaced with symlink to current program. So that works.\n\n-- \nMiloslav \"Majkls\" Semler\n"}]}