From f5f75c5e82d47613847c356664e47c4be69e73aa Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 12 Jun 2007 22:35:19 +0000 Subject: remove nearly-duplicate PATHs in several places function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes --- debianutils/which.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debianutils/which.c') diff --git a/debianutils/which.c b/debianutils/which.c index 2c71ed32d..b556a9fd9 100644 --- a/debianutils/which.c +++ b/debianutils/which.c @@ -22,9 +22,11 @@ int which_main(int argc, char **argv) bb_show_usage(); } +/* We shouldn't do this. Ever. Not our business. if (!getenv("PATH")) { - setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin", 1); + putenv((char*)bb_PATH_root_path); } +*/ while (--argc > 0) { argv++; -- cgit v1.2.3