cvs commit: patches/sysklogd sysklogd-1.4.1-8bit.patch sysklogd-1.4.1-sigterm.patch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sat May 8 22:56:09 PDT 2004


tushar      04/05/08 23:56:09

  Added:       sysklogd sysklogd-1.4.1-8bit.patch
                        sysklogd-1.4.1-sigterm.patch
  Log:
  Added sysklogd patches
  
  Revision  Changes    Path
  1.1                  patches/sysklogd/sysklogd-1.4.1-8bit.patch
  
  Index: sysklogd-1.4.1-8bit.patch
  ===================================================================
  Submitted By: Alexander E. Patrakov
  Date: 2004-05-09
  Initial Package Version: 1.4.1
  Origin: Alexander E. Patrakov
  Upstream status: not submitted yet, probably will not be accepted
  Description: Weakens rules for determining whether a character is printable.
  Now only bytes < 0x20 and the 0x7f byte are considered to be unprintable.
  The original rules were valid for ISO-8859-* and KOI*.
  
  Without this fix, logging meaningful Russian messages in UTF-8 is impossible.
  
  diff -u sysklogd-1.4.1/syslogd.c sysklogd-1.4.1.fixed/syslogd.c
  --- sysklogd-1.4.1/syslogd.c	2001-03-12 00:40:10.000000000 +0500
  +++ sysklogd-1.4.1.fixed/syslogd.c	2004-05-09 09:05:42.972864104 +0600
  @@ -1449,7 +1449,7 @@
   		else if (c < 040) {
   			*q++ = '^';
   			*q++ = c ^ 0100;
  -		} else if (c == 0177 || (c & 0177) < 040) {
  +		} else if (c == 0177) {
   			*q++ = '\\';
   			*q++ = '0' + ((c & 0300) >> 6);
   			*q++ = '0' + ((c & 0070) >> 3);
  
  
  
  1.1                  patches/sysklogd/sysklogd-1.4.1-sigterm.patch
  
  Index: sysklogd-1.4.1-sigterm.patch
  ===================================================================
  Submitted By: Alexander E. Patrakov
  Date: 2004-05-09
  Initial Package Version: 1.4.1
  Origin: Debian
  Upstream status: present in Debian
  Description: Fixes the signal handling logic.
  Without this patch, the following command can fail:
  
  /etc/rc.d/init.d/sysklogd restart
  
  diff -u sysklogd-1.4.1/syslogd.c sysklogd-1.4.1.signal/syslogd.c
  --- sysklogd-1.4.1/syslogd.c	2001-03-12 00:40:10.000000000 +0500
  +++ sysklogd-1.4.1.signal/syslogd.c	2004-05-09 10:17:28.603308784 +0600
  @@ -890,11 +890,11 @@
   		dprintf("Checking pidfile.\n");
   		if (!check_pid(PidFile))
   		{
  +			signal(SIGTERM, doexit);
   			if (fork()) {
   				/*
   				 * Parent process
   				 */
  -				signal (SIGTERM, doexit);
   				sleep(300);
   				/*
   				 * Not reached unless something major went wrong.  5
  
  
  



More information about the patches mailing list