362aa29
From 63467fa18794f02497c7a46e3b7783ba1180f8fc Mon Sep 17 00:00:00 2001
362aa29
From: Jim Meyering <meyering@redhat.com>
362aa29
Date: Fri, 4 Jul 2008 16:34:39 +0200
362aa29
Subject: [PATCH] who -r: don't print "last=" when the corresponding byte is unprintable
362aa29
362aa29
* src/who.c (print_runlevel): Print last=%c only when the "preceding
362aa29
run-level" byte is printable.  Reported by Gian Piero De Lolliis in
362aa29
<http://bugzilla.redhat.com/453249>.
362aa29
---
362aa29
 src/who.c |    3 ++-
362aa29
 1 files changed, 2 insertions(+), 1 deletions(-)
362aa29
362aa29
diff --git a/src/who.c b/src/who.c
362aa29
index 5529618..0bba912 100644
362aa29
--- a/src/who.c
362aa29
+++ b/src/who.c
362aa29
@@ -30,6 +30,7 @@
362aa29
 #include <sys/types.h>
362aa29
 #include "system.h"
362aa29
362aa29
+#include "c-ctype.h"
362aa29
 #include "canon-host.h"
362aa29
 #include "readutmp.h"
362aa29
 #include "error.h"
362aa29
@@ -511,7 +512,7 @@ print_runlevel (const STRUCT_UTMP *utmp_ent)
362aa29
   sprintf (comment, "%s%c", _("last="), (last == 'N') ? 'S' : last);
362aa29
362aa29
   print_line (-1, "", ' ', -1, runlevline, time_string (utmp_ent),
362aa29
-	      "", "", comment, "");
362aa29
+	      "", "", c_isprint (last) ? comment : "", "");
362aa29
362aa29
   return;
362aa29
 }
362aa29
--
362aa29
1.5.6.1.206.g8dcaf96
362aa29
362aa29
From 10db2e5e05c67eea205b3ec76a2408f46356a7fd Mon Sep 17 00:00:00 2001
362aa29
From: =?utf-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= <ovasik@redhat.com>
362aa29
Date: Wed, 2 Jul 2008 14:11:05 +0200
362aa29
Subject: [PATCH] doci: describe who's -p -r and -t options
362aa29
362aa29
* doc/coreutils.texi (who invocation):
362aa29
---
362aa29
 doc/coreutils.texi |   18 ++++++++++++++++++
362aa29
 1 files changed, 18 insertions(+), 0 deletions(-)
362aa29
362aa29
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
362aa29
index 155ba8d..c0ea237 100644
362aa29
--- a/doc/coreutils.texi
362aa29
+++ b/doc/coreutils.texi
362aa29
@@ -12710,6 +12710,24 @@ automatic dial-up internet access.
362aa29
 @opindex --heading
362aa29
 Print a line of column headings.
362aa29
 
362aa29
+@item -p
362aa29
+@itemx --process
362aa29
+@opindex -p
362aa29
+@opindex --process
362aa29
+List active processes spawned by init.
362aa29
+
362aa29
+@item -r
362aa29
+@itemx --runlevel
362aa29
+@opindex -r
362aa29
+@opindex --runlevel
362aa29
+Print the current (and maybe previous) run-level of the init process. 
362aa29
+
362aa29
+@item -t
362aa29
+@itemx --time
362aa29
+@opindex -t
362aa29
+@opindex --time
362aa29
+Print last system clock change. 
362aa29
+
362aa29
 @item -w
362aa29
 @itemx -T
362aa29
 @itemx --mesg
362aa29
-- 
362aa29
1.5.2.2
362aa29