Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rpcbind Write the "warm start" file to /var/run rat...



details:   https://anonhg.NetBSD.org/src/rev/065914858b46
branches:  trunk
changeset: 355611:065914858b46
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Sun Aug 06 01:02:44 2017 +0000

description:
Write the "warm start" file to /var/run rather than /tmp.

diffstat:

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

diffs (23 lines):

diff -r 3eaa7d4f470f -r 065914858b46 usr.sbin/rpcbind/warmstart.c
--- a/usr.sbin/rpcbind/warmstart.c      Sat Aug 05 20:25:41 2017 +0000
+++ b/usr.sbin/rpcbind/warmstart.c      Sun Aug 06 01:02:44 2017 +0000
@@ -40,6 +40,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <err.h>
+#include <paths.h>
 #include <rpc/rpc.h>
 #include <rpc/rpcb_prot.h>
 #include <rpc/xdr.h>
@@ -59,9 +60,9 @@
 
 
 /* These files keep the pmap_list and rpcb_list in XDR format */
-#define        RPCBFILE        "/tmp/rpcbind.file"
+#define        RPCBFILE        _PATH_VARRUN "rpcbind.file"
 #ifdef PORTMAP
-#define        PMAPFILE        "/tmp/portmap.file"
+#define        PMAPFILE        _PATH_VARRUN "portmap.file"
 #endif
 
 static bool_t write_struct(const char *, xdrproc_t, void *);



Home | Main Index | Thread Index | Old Index