about summary refs log tree commit diff stats
path: root/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c index 08d81a1..40825cb 100644 --- a/cgit.c +++ b/cgit.c
@@ -674,7 +674,7 @@ static inline void authenticate_post(void)
674 len = MAX_AUTHENTICATION_POST_BYTES; 674 len = MAX_AUTHENTICATION_POST_BYTES;
675 if ((len = read(STDIN_FILENO, buffer, len)) < 0) 675 if ((len = read(STDIN_FILENO, buffer, len)) < 0)
676 die_errno("Could not read POST from stdin"); 676 die_errno("Could not read POST from stdin");
677 if (write(STDOUT_FILENO, buffer, len) < 0) 677 if (fwrite(buffer, 1, len, stdout) < len)
678 die_errno("Could not write POST to stdout"); 678 die_errno("Could not write POST to stdout");
679 cgit_close_filter(ctx.cfg.auth_filter); 679 cgit_close_filter(ctx.cfg.auth_filter);
680 exit(0); 680 exit(0);