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

Segmentation fault in git-shell & symlink instead of script post-update in git repository

From
MMajkls <majkls@tiscali.cz>
Date
Dec 1, 2005, 19:17 UTC
Message-ID
<438F4C35.6000605@tiscali.cz>

Hello, when I tried to install git, I found some bug in git-shell (shell.c). If you don't give two parameters in argv[2], program ends by segfault. There is a problem solution.

*** shell.c     2005-11-26 01:35:20.000000000 +0100
--- shell.c.new 2005-12-01 19:42:29.000000000 +0100
*************** int main(int argc, char **argv)
*** 42,48 ****
                char *arg;
                if (strncmp(cmd->name, prog, len))
                        continue;
!               arg = NULL;
                switch (prog[len]) {
                case '\0':
                        arg = NULL;
--- 42,48 ----
                char *arg;
                if (strncmp(cmd->name, prog, len))
                        continue;
!               arg = "";
                switch (prog[len]) {
                case '\0':
                        arg = NULL;

I have /home/scm mounted as noexec. I had a problem with post-update. I remove it and replaced with symlink to current program. So that works.

-- 
Miloslav "Majkls" Semler
Message 1 of 1 in “Segmentation fault in git-shell & symlink instead of script post-update in git repository”
  1. MajklsDec 1, 2005

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.