tUse "git-shell" as argv0 in execlp call. - git-restrict - simple utility for git repo permission management HTML git clone https://git.parazyd.org/git-restrict DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 9cff63752cf8763bf649dac9d64810df68b83f66 DIR parent aa924e31a8f7510531a8852043fefba7fd2d67e8 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 31 Mar 2021 11:28:25 +0200 Use "git-shell" as argv0 in execlp call. Diffstat: M git-restrict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/git-restrict.c b/git-restrict.c t@@ -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; }