diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 5d0b35a99d4..26ec693f356 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -576,6 +576,7 @@ enable authentication with passkey token. autoreconf -ivf %configure \ + --runstatedir=%{_rundir} \ --disable-rpath \ --disable-static \ --enable-gss-spnego-for-zero-maxssf \ diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 46fa58244ce..72c0d77e94b 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -39,8 +39,8 @@ AC_DEFUN([WITH_PID_PATH], ) ] ) - config_pidpath="/run/sssd" - pidpath="/run/sssd" + config_pidpath="$runstatedir/sssd" + pidpath="$runstatedir/sssd" if test x"$with_pid_path" != x; then config_pidpath=$with_pid_path pidpath=$with_pid_path