git: DragonFly_RELEASE_3_0 rwhod(8): Prevent clobbering the neighboring field by a wrong cast.
Sascha Wildner
swildner at crater.dragonflybsd.org
Fri Mar 30 09:40:04 PDT 2012
commit 53aed75490d250452d85022e0961a0a7d1735531
Author: Sascha Wildner <saw at online.de>
Date: Fri Mar 30 18:36:50 2012 +0200
rwhod(8): Prevent clobbering the neighboring field by a wrong cast.
The time stamps in the rwhod(8) network datagram and, based on that,
/var/rwho/whod.* spool files are typed as 32bit int and cannot accept
a 64bit time_t.
The old code clobbered the first bytes of the adjacent "hostname"
field, yielding empty hostnames in local rwho(1) and ruptime(1) output.
(Outgoing datagrams to other hosts were not affected.)
Re-code to let the compiler do the proper coercion (well, until 2038).
Submitted-by: Martin Neitzel
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2339>
Summary of changes:
usr.sbin/rwhod/rwhod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/53aed75490d250452d85022e0961a0a7d1735531
--
DragonFly BSD source repository
More information about the Commits
mailing list