mirror of
https://github.com/troglobit/finit.git
synced 2026-10-05 15:23:31 +07:00
Adjust command length for built-in getty
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -1184,6 +1184,9 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
||||
|
||||
if (tty.cmd)
|
||||
len += strlen(tty.cmd);
|
||||
else
|
||||
len += 3;
|
||||
|
||||
len += tty.num + 1;
|
||||
for (i = 0; i < tty.num; i++)
|
||||
len += strlen(tty.args[i]) + 1;
|
||||
|
||||
Reference in New Issue
Block a user