diff mbox series

[libtirpc,1/1] Move rpcbind.sock to /run

Message ID 20240830174335.89678-1-pvorel@suse.cz (mailing list archive)
State New
Headers show
Series [libtirpc,1/1] Move rpcbind.sock to /run | expand

Commit Message

Petr Vorel Aug. 30, 2024, 5:43 p.m. UTC
Most of the distros have /var/run as symlink to /run.

Because /var may be a separate partition, and could even be mounted via
NFS, having to look directly to /run help to avoid issues rpcbind
startup early in boot when /var might not be available.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Follow up for rpcbind patch which touches rpcbind.lock location.

Kind regards,
Petr

 tirpc/rpc/rpcb_prot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Steve Dickson Aug. 31, 2024, 5:53 p.m. UTC | #1
On 8/30/24 1:43 PM, Petr Vorel wrote:
> Most of the distros have /var/run as symlink to /run.
> 
> Because /var may be a separate partition, and could even be mounted via
> NFS, having to look directly to /run help to avoid issues rpcbind
> startup early in boot when /var might not be available.
> 
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
Committed... (tag: libtirpc-1-3-6-rc1)

steved.

> ---
> Follow up for rpcbind patch which touches rpcbind.lock location.
> 
> Kind regards,
> Petr
> 
>   tirpc/rpc/rpcb_prot.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tirpc/rpc/rpcb_prot.h b/tirpc/rpc/rpcb_prot.h
> index eb3a0c4..06138bc 100644
> --- a/tirpc/rpc/rpcb_prot.h
> +++ b/tirpc/rpc/rpcb_prot.h
> @@ -476,8 +476,8 @@ extern bool_t xdr_netbuf(XDR *, struct netbuf *);
>   #define RPCBVERS_3 RPCBVERS
>   #define RPCBVERS_4 RPCBVERS4
>   
> -#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
> -#define _PATH_RPCBINDSOCK_ABSTRACT "\0/run/rpcbind.sock"
> +#define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
> +#define _PATH_RPCBINDSOCK_ABSTRACT "\0" _PATH_RPCBINDSOCK
>   
>   #else /* ndef _KERNEL */
>   #ifdef __cplusplus
diff mbox series

Patch

diff --git a/tirpc/rpc/rpcb_prot.h b/tirpc/rpc/rpcb_prot.h
index eb3a0c4..06138bc 100644
--- a/tirpc/rpc/rpcb_prot.h
+++ b/tirpc/rpc/rpcb_prot.h
@@ -476,8 +476,8 @@  extern bool_t xdr_netbuf(XDR *, struct netbuf *);
 #define RPCBVERS_3 RPCBVERS
 #define RPCBVERS_4 RPCBVERS4
 
-#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
-#define _PATH_RPCBINDSOCK_ABSTRACT "\0/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK_ABSTRACT "\0" _PATH_RPCBINDSOCK
 
 #else /* ndef _KERNEL */
 #ifdef __cplusplus