Use global applet_name instead of local versions.

This commit is contained in:
Matt Kraai
2000-07-12 15:38:49 +00:00
parent e714bce003
commit e58771e73c
20 changed files with 42 additions and 72 deletions

2
init.c
View File

@@ -891,7 +891,7 @@ extern int init_main(int argc, char **argv)
/* Expect to be invoked as init with PID=1 or be invoked as linuxrc */
if (getpid() != 1
#ifdef BB_FEATURE_LINUXRC
&& strstr(argv[0], "linuxrc") == NULL
&& strstr(applet_name, "linuxrc") == NULL
#endif
)
{