Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/rpc.statd Pull up revision 1.23 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/44790e872644
branches:  netbsd-1-6
changeset: 531249:44790e872644
user:      grant <grant%NetBSD.org@localhost>
date:      Tue Apr 06 09:41:54 2004 +0000

description:
Pull up revision 1.23 (requested by bouyer in ticket #1657):

init_file: copy status_info from static storage so that
statd doesn't always use the same "status" number.

diffstat:

 usr.sbin/rpc.statd/statd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 887fd823d5d1 -r 44790e872644 usr.sbin/rpc.statd/statd.c
--- a/usr.sbin/rpc.statd/statd.c        Tue Apr 06 09:40:48 2004 +0000
+++ b/usr.sbin/rpc.statd/statd.c        Tue Apr 06 09:41:54 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: statd.c,v 1.20.2.2 2004/04/06 09:40:48 grant Exp $     */
+/*     $NetBSD: statd.c,v 1.20.2.3 2004/04/06 09:41:54 grant Exp $     */
 
 /*
  * Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: statd.c,v 1.20.2.2 2004/04/06 09:40:48 grant Exp $");
+__RCSID("$NetBSD: statd.c,v 1.20.2.3 2004/04/06 09:41:54 grant Exp $");
 #endif
 
 /* main() function for status monitor daemon.  Some of the code in this        */
@@ -547,6 +547,7 @@
                if (data.size != sizeof(status_info))
                        errx(1, "database corrupted %lu != %lu",
                            (u_long)data.size, (u_long)sizeof(status_info));
+               memcpy(&status_info, data.data, data.size);
                break;
        default:
                abort();



Home | Main Index | Thread Index | Old Index