[BusyBox] egrep bug fix

Christophe Boyanique totof at raceme.org
Fri Mar 16 14:18:09 UTC 2001


There is a bug (bad copy/paste while correcting previous bug yesterday I
suppose) in the egrep applet definition in applets.h: egrep points on
init_main. So egrep doesn't compile if init is disabled, and I don't want
to imagine result while calling egrep with init enabled :(

silly patch attached.

Christophe.
-------------- next part --------------
--- applets.h.orig	Fri Mar 16 15:14:40 2001
+++ applets.h	Fri Mar 16 15:14:58 2001
@@ -126,7 +126,7 @@
 	APPLET(echo, echo_main, _BB_DIR_BIN)
 #endif
 #if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
-	APPLET_NOUSAGE("egrep", init_main, _BB_DIR_BIN)
+	APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
 #endif
 #ifdef BB_EXPR
 	APPLET(expr, expr_main, _BB_DIR_USR_BIN)


More information about the busybox mailing list