From bd2112b5fd1db88f901dc846891ffafe018e8f40 Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Tue, 15 Jun 2021 17:55:34 +0800
Subject: [PATCH] src/conf_macros.m4: set default value /run for pidpath

/var/run is deprecated, so replace /var/run with /run as the default
value of variable pidpath.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 src/conf_macros.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index cdffba11ce..a4d61ca3ba 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -35,12 +35,12 @@ AC_DEFUN([WITH_PLUGIN_PATH],
 AC_DEFUN([WITH_PID_PATH],
   [ AC_ARG_WITH([pid-path],
                 [AC_HELP_STRING([--with-pid-path=PATH],
-                                [Where to store pid files for the SSSD [/var/run]]
+                                [Where to store pid files for the SSSD [/run]]
                                )
                 ]
                )
-    config_pidpath="\"VARDIR\"/run"
-    pidpath="${localstatedir}/run"
+    config_pidpath="/run"
+    pidpath="/run"
     if test x"$with_pid_path" != x; then
         config_pidpath=$with_pid_path
         pidpath=$with_pid_path
