git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Segmentation fault in git-shell & symlink instead of script post-update in git repository
@ 2005-12-01 19:17 Majkls
  0 siblings, 0 replies; only message in thread
From: Majkls @ 2005-12-01 19:17 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-01 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01 19:17 Segmentation fault in git-shell & symlink instead of script post-update in git repository Majkls

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).