Re: [PATCH rpcbind 1/1] Move rpcbind.lock to /run

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

 





On 8/30/24 1:39 PM, Petr Vorel wrote:
From: Thomas Blume <thomas.blume@xxxxxxxx>

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.

Reviewed-by: Petr Vorel <pvorel@xxxxxxx>
Signed-off-by: Thomas Blume <thomas.blume@xxxxxxxx>
Signed-off-by: Petr Vorel <pvorel@xxxxxxx>
Committed... (tag: rpcbind-1_2_8-rc1)

steved.
---
NOTE: I chose opensuse patch for the simplicity, instead of Debian
patch, which unsets _PATH_RPCBINDSOCK (libtirpc).

I'll send a separate patch for libtirpc.

Kind regards,
Petr

  src/rpcbind.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpcbind.c b/src/rpcbind.c
index ecebe97..9887b82 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -105,7 +105,7 @@ char *nss_modules = "files";
  /* who to suid to if -s is given */
  #define RUN_AS  "daemon"
-#define RPCBINDDLOCK "/var/run/rpcbind.lock"
+#define RPCBINDDLOCK "/run/rpcbind.lock"
int runasdaemon = 0;
  int insecure = 0;





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux