d78be697482becbbd726d2c0be2b3cb0da080bd9
[feed/packages.git] / net / nfs-kernel-server / patches / 110-move-hardcoded-rundir.patch
1 --- a/utils/blkmapd/device-discovery.c
2 +++ b/utils/blkmapd/device-discovery.c
3 @@ -64,7 +64,7 @@
4 #define EVENT_BUFSIZE (1024 * EVENT_SIZE)
5
6 #define RPCPIPE_DIR "/var/lib/nfs/rpc_pipefs"
7 -#define PID_FILE "/run/blkmapd.pid"
8 +#define PID_FILE "/tmp/run/blkmapd.pid"
9
10 #define CONF_SAVE(w, f) do { \
11 char *p = f; \
12 --- a/utils/gssd/gssd.h
13 +++ b/utils/gssd/gssd.h
14 @@ -44,7 +44,7 @@
15 #define DNOTIFY_SIGNAL (SIGRTMIN + 3)
16
17 #define GSSD_DEFAULT_CRED_DIR "/tmp"
18 -#define GSSD_USER_CRED_DIR "/run/user/%U"
19 +#define GSSD_USER_CRED_DIR "/tmp/run/user/%U"
20 #define GSSD_DEFAULT_CRED_PREFIX "krb5cc"
21 #define GSSD_DEFAULT_MACHINE_CRED_SUFFIX "machine"
22 #define GSSD_DEFAULT_KEYTAB_FILE "/etc/krb5.keytab"
23 --- a/utils/statd/sm-notify.c
24 +++ b/utils/statd/sm-notify.c
25 @@ -913,7 +913,7 @@ static int record_pid(void)
26 int fd;
27
28 (void)snprintf(pid, sizeof(pid), "%d\n", (int)getpid());
29 - fd = open("/run/sm-notify.pid", O_CREAT|O_EXCL|O_WRONLY, 0600);
30 + fd = open("/tmp/run/sm-notify.pid", O_CREAT|O_EXCL|O_WRONLY, 0600);
31 if (fd < 0)
32 return 0;
33
34 --- a/utils/statd/statd.c
35 +++ b/utils/statd/statd.c
36 @@ -161,7 +161,7 @@ usage(void)
37 fprintf(stderr," -H Specify a high-availability callout program.\n");
38 }
39
40 -static const char *pidfile = "/run/rpc.statd.pid";
41 +static const char *pidfile = "/tmp/run/rpc.statd.pid";
42
43 int pidfd = -1;
44 static void create_pidfile(void)