git-restrict

simple utility for git repo permission management
git clone https://git.parazyd.org/git-restrict
Log | Files | Refs | README | LICENSE

commit 9cff63752cf8763bf649dac9d64810df68b83f66
parent aa924e31a8f7510531a8852043fefba7fd2d67e8
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 31 Mar 2021 11:28:25 +0200

Use "git-shell" as argv0 in execlp call.

Diffstat:
Mgit-restrict.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-restrict.c b/git-restrict.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) } if (authorized) - if (execlp("git-shell", " ", "-c", orig_cmd, (char *)NULL) < 0) { + if (execlp("git-shell", "git-shell", "-c", orig_cmd, (char *)NULL) < 0) { perror("execlp"); return 1; }