You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
--- src/main.c.orig Tue May 20 00:52:58 2003 |
|
+++ src/main.c Thu Jun 26 15:42:16 2003 |
|
@@ -16,6 +16,10 @@ |
|
#include "setenv.h" |
|
#include "strftime.h" |
|
#include "xgethostname.h" |
|
+#if defined(SERVER_SUPPORT) && defined(HAVE_SYSLOG_H) |
|
+#include <syslog.h> |
|
+#include <stdarg.h> |
|
+#endif |
|
|
|
const char *program_name; |
|
const char *program_path; |
|
@@ -557,6 +561,11 @@ |
|
/* `getopt_long' stores the option index here, but right now we |
|
don't use it. */ |
|
int option_index = 0; |
|
+ |
|
+#if defined(SERVER_SUPPORT) && defined(HAVE_SYSLOG_H) |
|
+ /* OSSP fsl identification */ |
|
+ openlog("cvs", 0, LOG_DAEMON); |
|
+#endif |
|
|
|
#ifdef SYSTEM_INITIALIZE |
|
/* Hook for OS-specific behavior, for example socket subsystems on |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
Fix "read hang" problem for CVS 1.11.x clients: |
|
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/~checkout~/SOURCES/cvs-debian-zlib-read-compressed.patch?rev=1.1;content-type=text%2Fplain |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368494 |
|
|
|
Index: src/zlib.c |
|
--- src/zlib.c.orig 3 Jun 2005 18:26:09 -0000 1.31 |
|
+++ src/zlib.c 27 Oct 2005 17:59:49 -0000 |
|
@@ -229,7 +229,7 @@ compress_buffer_input (void *closure, ch |
|
would fetch all the available bytes, and at least one byte. */ |
|
|
|
status = (*cb->buf->input) (cb->buf->closure, bd->text, |
|
- need, BUFFER_DATA_SIZE, &nread); |
|
+ need ? 1 : 0, BUFFER_DATA_SIZE, &nread); |
|
|
|
if (status == -2) |
|
/* Don't try to recover from memory allcoation errors. */
|
|
|