Package: sysvinit
Version: 2.86.ds1-1
Tags: patch

SysVinit version 2.86 have a problem in its code that leads to incorrectly displaying init name in process list (and in /proc/1/cmdline) -- it is shown as 'ini'. This was observed inside an OpenVZ's VPS. See http://bugzilla.openvz.org/60 for more details.

Patch fixing this is attached. Note that 2.85 does not have such bug.


--- ./init.c.cmdline	2005-10-26 12:56:47.328580896 +0400
+++ ./init.c	2005-10-26 12:48:43.823084904 +0400
@@ -466,7 +466,7 @@
 
 	if (maxproclen > 2) {
 		memset(argv0, 0, maxproclen);
-		strncpy(argv0, buf, maxproclen - 2);
+		strncpy(argv0, buf, maxproclen - 1);
 	}
 
 	return len;

Reply via email to