components/coreutils/patches/who.c.patch
author Gabriel Carrillo <gabriel.carrillo@Oracle.COM>
Thu, 25 Sep 2014 13:46:24 -0700
branchs11u2-sru-backport
changeset 3343 27f235d15683
parent 584 f4e402a57670
child 2050 7c6a1559c620
child 5249 8a7aa7f8367e
permissions -rw-r--r--
Added tag 0.175.2.2.0.6.0, S11.2SRU2.6 for changeset 4af2ab639479

--- coreutils-8.5/src/who.c.orig	Thu Nov 10 07:54:27 2011
+++ coreutils-8.5/src/who.c	Thu Nov 10 07:55:13 2011
@@ -524,8 +524,8 @@
   unsigned char curr = UT_PID (utmp_ent) % 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);