[BusyBox] init patch

Vladimir N. Oleynik dzo at simtreas.ru
Thu Jun 27 09:43:03 UTC 2002


rich_wilson,

 
> I've found that init has a problem with certain commands, at least on ppc.
> The failing line for me is:
> 
> ::respawn:/bin/sh -i -s </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0

You right. I already found this, see:
http://www.busybox.net/lists/busybox/2002-June/011743.html

I think, may be simplify for code size:

-                         strcpy(buf, "exec ");
> -                       safe_strncpy(buf + sizeof("exec "), a->command,
> -                                       sizeof(buf) - sizeof("exec "));

snprintf(buf, sizeof(buf), "exec %s", a->command);

;)


--w
vodz



More information about the busybox mailing list