summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-13 22:03:11 +0000
committerJim Meyering <jim@meyering.net>2004-06-13 22:03:11 +0000
commit773c6cc76b5fe5e2128ebf1dd6b0633c1e863ced (patch)
tree629f52f4c3c122fa5cef4b354ca9fb745705fa96
parent5bca9fb5f38fd72c73e519241755fbc9108ee5c8 (diff)
downloadcoreutils-773c6cc76b5fe5e2128ebf1dd6b0633c1e863ced.tar.xz
*** empty log message ***
-rw-r--r--ChangeLog16
1 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 62768f241..c9fc28eb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,21 @@
-2004-06-11 Paul Eggert <eggert@cs.ucla.edu>
+2004-06-13 Paul Eggert <eggert@cs.ucla.edu>
* Version 5.3.0.
+ * src/who.c (PIDSTR_DECL_AND_INIT): Don't assume pid_t fits in int.
+ (UT_ID) [!HAVE_STRUCT_XTMP_UT_ID]: Remove bogus comment,
+ as (sizeof "??") reliably returns 3.
+ (print_line): Guard against idle and pid being too long
+ (which is possible when printing headers).
+ (print_user): Allocate enough bytes for idlestr. Use IDLESTR_LEN.
+ Avoid unnecessary cast of sizeof to int.
+ (make_id_equals_comment): Do not assume that UT_ID returns
+ a string; it might return a non-null-terminated array.
+ Use strncat instead. It's not very often where strncat is
+ exactly what you want, but this is one of those rare cases.
+
+2004-06-11 Paul Eggert <eggert@cs.ucla.edu>
+
* src/who.c (list_entries_who): Don't output a trailing space.
2004-06-09 Jim Meyering <jim@meyering.net>