mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 00:06:10 +00:00
Tiny fixes from 6Wind patch.
This commit is contained in:
parent
e26bbebadd
commit
b3516a791d
@ -28,7 +28,7 @@ noinst_HEADERS = \
|
|||||||
ospfd_SOURCES = \
|
ospfd_SOURCES = \
|
||||||
ospf_main.c $(libospf_a_SOURCES)
|
ospf_main.c $(libospf_a_SOURCES)
|
||||||
|
|
||||||
ospfd_LDADD = ../lib/libzebra.a
|
ospfd_LDADD = -L../lib -lzebra
|
||||||
|
|
||||||
sysconf_DATA = ospfd.conf.sample
|
sysconf_DATA = ospfd.conf.sample
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ main (int argc, char **argv)
|
|||||||
progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]);
|
progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]);
|
||||||
|
|
||||||
/* Invoked by a priviledged user? -- endo. */
|
/* Invoked by a priviledged user? -- endo. */
|
||||||
if (getuid () != 0)
|
if (geteuid () != 0)
|
||||||
{
|
{
|
||||||
errno = EPERM;
|
errno = EPERM;
|
||||||
perror (progname);
|
perror (progname);
|
||||||
@ -290,8 +290,10 @@ main (int argc, char **argv)
|
|||||||
/* Create VTY socket */
|
/* Create VTY socket */
|
||||||
vty_serv_sock (vty_addr, vty_port, OSPF_VTYSH_PATH);
|
vty_serv_sock (vty_addr, vty_port, OSPF_VTYSH_PATH);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
/* Print banner. */
|
/* Print banner. */
|
||||||
zlog (NULL, LOG_INFO, "OSPFd (%s) starts", ZEBRA_VERSION);
|
zlog (NULL, LOG_INFO, "OSPFd (%s) starts", ZEBRA_VERSION);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Fetch next active thread. */
|
/* Fetch next active thread. */
|
||||||
while (thread_fetch (master, &thread))
|
while (thread_fetch (master, &thread))
|
||||||
|
Loading…
Reference in New Issue
Block a user