forked from rpms/rpcbind
62 lines
2.4 KiB
Diff
62 lines
2.4 KiB
Diff
diff -up rpcbind-1.2.7/configure.ac.orig rpcbind-1.2.7/configure.ac
|
|
--- rpcbind-1.2.7/configure.ac.orig 2024-07-30 10:57:07.374738667 -0400
|
|
+++ rpcbind-1.2.7/configure.ac 2024-07-30 10:59:36.195668928 -0400
|
|
@@ -32,8 +32,8 @@ AC_ARG_ENABLE([rmtcalls],
|
|
AM_CONDITIONAL(RMTCALLS, test x$enable_rmtcalls = xyes)
|
|
|
|
AC_ARG_WITH([statedir],
|
|
- AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/var/run/rpcbind@:>@])
|
|
- ,, [with_statedir=/var/run/rpcbind])
|
|
+ AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/run/rpcbind@:>@])
|
|
+ ,, [with_statedir=/run/rpcbind])
|
|
AC_SUBST([statedir], [$with_statedir])
|
|
|
|
AC_ARG_WITH([rpcuser],
|
|
diff -up rpcbind-1.2.7/configure.orig rpcbind-1.2.7/configure
|
|
--- rpcbind-1.2.7/configure.orig 2024-07-25 16:49:00.000000000 -0400
|
|
+++ rpcbind-1.2.7/configure 2024-07-30 11:01:42.660459442 -0400
|
|
@@ -1429,7 +1429,7 @@ Optional Features:
|
|
Optional Packages:
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
- --with-statedir=ARG use ARG as state dir [default=/var/run/rpcbind]
|
|
+ --with-statedir=ARG use ARG as state dir [default=/run/rpcbind]
|
|
|
|
--with-rpcuser=ARG use ARG for RPC [default=root]
|
|
|
|
@@ -4440,7 +4440,7 @@ if test ${with_statedir+y}
|
|
then :
|
|
withval=$with_statedir;
|
|
else $as_nop
|
|
- with_statedir=/var/run/rpcbind
|
|
+ with_statedir=/run/rpcbind
|
|
fi
|
|
|
|
statedir=$with_statedir
|
|
diff -up rpcbind-1.2.7/man/rpcbind-fr.8.orig rpcbind-1.2.7/man/rpcbind-fr.8
|
|
--- rpcbind-1.2.7/man/rpcbind-fr.8.orig 2024-07-25 11:55:23.000000000 -0400
|
|
+++ rpcbind-1.2.7/man/rpcbind-fr.8 2024-07-30 10:59:36.198668946 -0400
|
|
@@ -138,8 +138,8 @@ est redémarré.
|
|
.Xr rpcbind 3 ,
|
|
.Xr rpcinfo 8
|
|
.Sh FILES
|
|
-.Bl -tag -width /var/run/rpcbind.sock -compact
|
|
-.It Pa /var/run/rpcbind.sock
|
|
+.Bl -tag -width /run/rpcbind.sock -compact
|
|
+.It Pa /run/rpcbind.sock
|
|
.Sh TRADUCTION
|
|
Aurelien CHARBON (Sept 2003)
|
|
.El
|
|
diff -up rpcbind-1.2.7/src/rpcbind.c.orig rpcbind-1.2.7/src/rpcbind.c
|
|
--- rpcbind-1.2.7/src/rpcbind.c.orig 2024-07-30 10:57:07.404738854 -0400
|
|
+++ rpcbind-1.2.7/src/rpcbind.c 2024-07-30 10:59:36.198668946 -0400
|
|
@@ -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 RPCBIND_STATEDIR "/rpcbind.lock"
|
|
|
|
int runasdaemon = 0;
|
|
int insecure = 0;
|