From: ßingen Date: Mon, 26 Sep 2016 09:07:01 +0000 (+0200) Subject: ospfd: Fix OSPF daemon pid file param X-Git-Tag: frr-2.0-rc1~210 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb5ea4a6d799a7b38d05dc0df44678b278915942;p=matthieu%2Ffrr.git ospfd: Fix OSPF daemon pid file param When -i is specified on the cli, ospf was ignoring this value. --- 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. */