summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
authorpaul <paul>2003-05-26 00:25:34 +0000
committerpaul <paul>2003-05-26 00:25:34 +0000
commita2642228fa2f7f4a287d05f17e09fb63953a05aa (patch)
tree13005197447156ad362f5138726f8433324055a6 /ospfd/ospf_main.c
parentff8c45e1d68d32731f78f9b814ccfec976165a6c (diff)
downloadquagga-a2642228fa2f7f4a287d05f17e09fb63953a05aa.tar.bz2
quagga-a2642228fa2f7f4a287d05f17e09fb63953a05aa.tar.xz
Merge HEAD to zprivs
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 12415453..489d0278 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -208,7 +208,7 @@ main (int argc, char **argv)
progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]);
/* Invoked by a priviledged user? -- endo. */
- if (getuid () != 0)
+ if (geteuid () != 0)
{
errno = EPERM;
perror (progname);
@@ -319,8 +319,10 @@ main (int argc, char **argv)
/* Create VTY socket */
vty_serv_sock (vty_addr, vty_port, OSPF_VTYSH_PATH);
+#ifdef DEBUG
/* Print banner. */
zlog (NULL, LOG_INFO, "OSPFd (%s) starts", ZEBRA_VERSION);
+#endif
/* Fetch next active thread. */
while (thread_fetch (master, &thread))