From bb5ea4a6d799a7b38d05dc0df44678b278915942 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=9Fingen?= Date: Mon, 26 Sep 2016 11:07:01 +0200 Subject: [PATCH] ospfd: Fix OSPF daemon pid file param When -i is specified on the cli, ospf was ignoring this value. --- ospfd/ospf_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 0ed39af411..43aa683fa4 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -203,6 +203,8 @@ main (int argc, char **argv) ospf_apiserver_enable = 0; #endif /* SUPPORT_OSPF_API */ + strcpy(pid_file, PATH_OSPFD_PID); + /* get program name */ progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]); @@ -363,7 +365,6 @@ main (int argc, char **argv) } else { - strcpy(pid_file, PATH_OSPFD_PID); strcpy(vty_path, OSPF_VTYSH_PATH); } /* Process id file create. */ -- 2.39.5