svn commit: trunk/busybox/debianutils
vda at busybox.net
vda at busybox.net
Sun Jan 28 15:31:19 UTC 2007
Author: vda
Date: 2007-01-28 07:31:19 -0800 (Sun, 28 Jan 2007)
New Revision: 17600
Log:
fix which-uses-default-path
Modified:
trunk/busybox/debianutils/which.c
Changeset:
Modified: trunk/busybox/debianutils/which.c
===================================================================
--- trunk/busybox/debianutils/which.c 2007-01-28 15:27:11 UTC (rev 17599)
+++ trunk/busybox/debianutils/which.c 2007-01-28 15:31:19 UTC (rev 17600)
@@ -21,6 +21,10 @@
bb_show_usage();
}
+ if (!getenv("PATH")) {
+ setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1);
+ }
+
while (--argc > 0) {
argv++;
if (strchr(*argv, '/')) {
More information about the busybox-cvs
mailing list