git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Majkls <majkls@tiscali.cz>
To: git@vger.kernel.org
Subject: Segmentation fault in git-shell & symlink instead of script post-update in git repository
Date: Thu, 01 Dec 2005 20:17:09 +0100	[thread overview]
Message-ID: <438F4C35.6000605@tiscali.cz> (raw)

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

                 reply	other threads:[~2005-12-01 19:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=438F4C35.6000605@tiscali.cz \
    --to=majkls@tiscali.cz \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).