Module Name: src
Committed By: ginsbach
Date: Sun Aug 6 01:02:45 UTC 2017
Modified Files:
src/usr.sbin/rpcbind: warmstart.c
Log Message:
Write the "warm start" file to /var/run rather than /tmp.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/rpcbind/warmstart.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rpcbind/warmstart.c
diff -u src/usr.sbin/rpcbind/warmstart.c:1.3 src/usr.sbin/rpcbind/warmstart.c:1.4
--- src/usr.sbin/rpcbind/warmstart.c:1.3 Fri Oct 12 21:24:01 2007
+++ src/usr.sbin/rpcbind/warmstart.c Sun Aug 6 01:02:44 2017
@@ -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 *);