]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Fix OSPF daemon pid file param
authorßingen <bingen@voltanet.io>
Mon, 26 Sep 2016 09:07:01 +0000 (11:07 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 30 Sep 2016 00:03:28 +0000 (20:03 -0400)
When -i is specified on the cli, ospf was ignoring this
value.

ospfd/ospf_main.c

index 0ed39af41145da70488c2e050261bf2b0a6e94bd..43aa683fa43a1aa5b975337deecad6ea5fe48c81 100644 (file)
@@ -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. */