cvs commit: patches/sysvinit sysvinit-2.85-proclen-1.patch sysvinit-2.85-proclen.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Mon Jun 7 22:07:30 PDT 2004


jim         04/06/07 23:07:30

  Added:       sysvinit sysvinit-2.85-proclen-1.patch
  Removed:     sysvinit sysvinit-2.85-proclen.patch
  Log:
  Naming Scheme Update
  
  Revision  Changes    Path
  1.1                  patches/sysvinit/sysvinit-2.85-proclen-1.patch
  
  Index: sysvinit-2.85-proclen-1.patch
  ===================================================================
  Submitted By: Alexander E. Patrakov (semzx at newmail dot ru)
  Origin: Alexander E. Patrakov
  Date: 2003-11-22
  Initial Package Version: 2.85
  Description: Without this patch, init sometimes clobbers environment variables
  set by kernel (such as TERM) when trying to change process title for ps
  due to out-of-bounds access to the command line arguments.
  
  diff -ur sysvinit-2.85/src/init.c sysvinit-2.85-fixed/src/init.c
  --- sysvinit-2.85/src/init.c	2003-04-15 17:16:41.000000000 +0600
  +++ sysvinit-2.85-fixed/src/init.c	2003-11-22 19:46:03.000000000 +0500
  @@ -432,7 +432,7 @@
   	len = vsnprintf(buf, sizeof(buf), fmt, ap);
   	va_end(ap);
   
  -	memset(argv0, 0, maxproclen + 1);
  +	memset(argv0, 0, maxproclen);
   	strncpy(argv0, buf, maxproclen - 1);
   
   	return len;
  
  
  



More information about the patches mailing list