Needed so that GNU 'who -r' correctly prints the run-level. See CR #15651288 for more details. This patch has not been passed upstream yet. It needs to be reworked into a format that would be acceptable. --- coreutils-9.5/src/who.c.orig +++ coreutils-9.5/src/who.c @@ -515,8 +515,8 @@ unsigned char curr = utmp_ent->ut_pid % 256; if (!runlevline) - runlevline = xmalloc (strlen (_("run-level")) + 3); - sprintf (runlevline, "%s %c", _("run-level"), curr); + runlevline = xmalloc (sizeof (utmp_ent->ut_line)); + sprintf (runlevline, "%s", utmp_ent->ut_line); if (!comment) comment = xmalloc (strlen (_("last=")) + 2);