From 6088e138e1c6d0b73f8004fc4b4e9ec40430e18e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 25 Dec 2010 23:58:42 +0100 Subject: init: simpler handling of leading dash in commands function old new delta init_exec 233 219 -14 Signed-off-by: Denys Vlasenko --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/ash.c') diff --git a/shell/ash.c b/shell/ash.c index 5671a524b..6f03ac1c6 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13063,7 +13063,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv) } } #endif - if (/* argv[0] && */ argv[0][0] == '-') + if (argv[0] && argv[0][0] == '-') isloginsh = 1; if (isloginsh) { state = 1; -- cgit v1.2.3