diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-03-28 19:57:12 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-03-28 19:57:12 +0100 |
commit | 81acc30ee998ce7eb05df0e4216b3d994a5b30f2 (patch) | |
tree | 3ed29e9c821256e8654819e9ae611f5b683425df /src/blogc-git-receiver/main.c | |
parent | a7d888e158104ee7993921687457dc3b4ddd6c4b (diff) | |
download | blogc-81acc30ee998ce7eb05df0e4216b3d994a5b30f2.tar.gz blogc-81acc30ee998ce7eb05df0e4216b3d994a5b30f2.tar.bz2 blogc-81acc30ee998ce7eb05df0e4216b3d994a5b30f2.zip |
git-receiver: exit 1 on error
Diffstat (limited to 'src/blogc-git-receiver/main.c')
-rw-r--r-- | src/blogc-git-receiver/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-git-receiver/main.c b/src/blogc-git-receiver/main.c index 43a9993..13218dd 100644 --- a/src/blogc-git-receiver/main.c +++ b/src/blogc-git-receiver/main.c @@ -35,10 +35,10 @@ main(int argc, char *argv[]) char *ssh_orig = getenv("SSH_ORIGINAL_COMMAND"); if (argc == 1 && ssh_orig != NULL && argv[0][0] == '/') { setenv("SHELL", argv[0], 1); - char* _argv[3] = {argv[0], "-c", ssh_orig}; + char* _argv[] = {argv[0], "-c", ssh_orig}; return bgr_shell(3, _argv); } fprintf(stderr, "error: this is a special shell, go away!\n"); - return 3; + return 1; } |