mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Hard code the name of init.
This commit is contained in:
parent
8a2e56c5df
commit
f34aa4c378
3
init.c
3
init.c
@ -1015,7 +1015,8 @@ extern int init_main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Fix up argv[0] to be certain we claim to be init */
|
||||
strncpy(argv[0], "init", strlen(argv[0])+1);
|
||||
argv[0]="init";
|
||||
|
||||
if (argc > 1)
|
||||
strncpy(argv[1], "\0", strlen(argv[1])+1);
|
||||
|
||||
|
@ -1015,7 +1015,8 @@ extern int init_main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Fix up argv[0] to be certain we claim to be init */
|
||||
strncpy(argv[0], "init", strlen(argv[0])+1);
|
||||
argv[0]="init";
|
||||
|
||||
if (argc > 1)
|
||||
strncpy(argv[1], "\0", strlen(argv[1])+1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user