[BusyBox-cvs] svn commit: trunk/busybox/shell

pgf at busybox.net pgf at busybox.net
Wed Jul 20 19:18:47 UTC 2005


Author: pgf
Date: 2005-07-20 13:18:45 -0600 (Wed, 20 Jul 2005)
New Revision: 10881

Log:
applying fix for:
    0000261: Unsafe empty env var export in ash



Modified:
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2005-07-20 19:13:21 UTC (rev 10880)
+++ trunk/busybox/shell/ash.c	2005-07-20 19:18:45 UTC (rev 10881)
@@ -12001,9 +12001,8 @@
 	}
 	INTOFF;
 	p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen);
-	*p++ = '\0';
+	*p++ = '=';
 	if (vallen) {
-		p[-1] = '=';
 		p = mempcpy(p, val, vallen);
 	}
 	*p = '\0';




More information about the busybox-cvs mailing list