svn commit: trunk/busybox/runit

vda at busybox.net vda at busybox.net
Fri Oct 6 08:54:49 UTC 2006


Author: vda
Date: 2006-10-06 01:54:49 -0700 (Fri, 06 Oct 2006)
New Revision: 16315

Log:
chpst: fix vda's silly mistakes
Patch by Vladimir Dronnikov <dronnikov at gmail.ru>


Modified:
   trunk/busybox/runit/chpst.c


Changeset:
Modified: trunk/busybox/runit/chpst.c
===================================================================
--- trunk/busybox/runit/chpst.c	2006-10-05 23:12:49 UTC (rev 16314)
+++ trunk/busybox/runit/chpst.c	2006-10-06 08:54:49 UTC (rev 16315)
@@ -91,7 +91,7 @@
 				bb_perror_msg_and_die("read %s/%s", directory_name, /* was exiting 111 */
 						d->d_name);
 			if (size == 0) {
-				xsetenv(d->d_name, "");
+				unsetenv(d->d_name);
 				continue;
 			}
 			buf[size] = '\n';
@@ -247,6 +247,7 @@
 		//if (option_mask & 0x10000) OPT_nostdout = 1; // -1
 		//if (option_mask & 0x20000) OPT_nostderr = 1; // -2
 	}
+	argv += optind;
 	if (!argv || !*argv) bb_show_usage();
 	
 	if (OPT_pgrp) setsid();




More information about the busybox-cvs mailing list