[PATCH] users: new applet

Ralf Friedl Ralf.Friedl at online.de
Wed Jul 27 11:53:19 UTC 2011


gotrunks at gmail.com wrote:
> On Wed, Jul 27, 2011 at 11:29 AM, Matthias Andree <mandree at freebsd.org> wrote:
>   
>> Re printf, adding a format string ("%s") is absolutely necessary.
>> Else use fputs(ut->ut_user, stdout)
> It was about saving bytes but ok, revised patch attached.
>   

You can probably get those bytes back by using
  if (ut->ut_type == USER_PROCESS) {
    printf(" %s" + first, ut->ut_user);
    first = 0;
  }

Ralf




More information about the busybox mailing list