aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-12-25 23:58:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-12-25 23:58:42 +0100
commit6088e138e1c6d0b73f8004fc4b4e9ec40430e18e (patch)
tree87e2e5d630c8f56e69642f61b6e7e678d78a64ae /shell
parent8993c3f260ba50ca8cbbd8a0185dd9d825bbaa2b (diff)
downloadbusybox-w32-6088e138e1c6d0b73f8004fc4b4e9ec40430e18e.tar.gz
busybox-w32-6088e138e1c6d0b73f8004fc4b4e9ec40430e18e.tar.bz2
busybox-w32-6088e138e1c6d0b73f8004fc4b4e9ec40430e18e.zip
init: simpler handling of leading dash in commands
function old new delta init_exec 233 219 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
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)
13063 } 13063 }
13064 } 13064 }
13065#endif 13065#endif
13066 if (/* argv[0] && */ argv[0][0] == '-') 13066 if (argv[0] && argv[0][0] == '-')
13067 isloginsh = 1; 13067 isloginsh = 1;
13068 if (isloginsh) { 13068 if (isloginsh) {
13069 state = 1; 13069 state = 1;