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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgit.c b/cgit.c index 4b2d86c..40a266b 100644 --- a/cgit.c +++ b/cgit.c
@@ -378,7 +378,7 @@ static void prepare_context(void)
378 ctx.cfg.commit_sort = 0; 378 ctx.cfg.commit_sort = 0;
379 ctx.cfg.css = "/cgit.css"; 379 ctx.cfg.css = "/cgit.css";
380 ctx.cfg.logo = "/cgit.png"; 380 ctx.cfg.logo = "/cgit.png";
381 ctx.cfg.favicon = "/favicon.ico"; 381 ctx.cfg.favicon = NULL;
382 ctx.cfg.local_time = 0; 382 ctx.cfg.local_time = 0;
383 ctx.cfg.enable_http_clone = 1; 383 ctx.cfg.enable_http_clone = 1;
384 ctx.cfg.enable_index_owner = 1; 384 ctx.cfg.enable_index_owner = 1;
@@ -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);