2003-08-14 Paul Jakma <paul@dishone.st>
* zebra/main.c: Fixup ZEBRA_{GROUP,USER} defines ->
QUAGGA_{USER,GROUP}
* bgpd/bgp_main.c: ditto
* ospf6d/ospf6_main.c: ditto
* ospfd/ospf_main.c: ditto
* ripd/rip_main.c: ditto
* ripngd/ripng_main.c: ditto
* zebra/main.c: ditto
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index f3c2f3e..0472922 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -80,9 +80,12 @@
struct zebra_privs_t bgpd_privs =
{
-#if defined(ZEBRA_USER) && defined(ZEBRA_GROUP)
- .user = ZEBRA_USER,
- .group = ZEBRA_GROUP,
+#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
+ .user = QUAGGA_USER,
+ .group = QUAGGA_GROUP,
+#endif
+#ifdef VTY_GROUP
+ .vty_group = VTY_GROUP,
#endif
.caps_p = _caps_p,
.cap_num_p = sizeof(_caps_p)/sizeof(_caps_p[0]),
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index 6356879..be46f3f 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -53,11 +53,14 @@
struct zebra_privs_t ospf6d_privs =
{
-#if defined(ZEBRA_USER)
- .user = ZEBRA_USER,
+#if defined(QUAGGA_USER)
+ .user = QUAGGA_USER,
#endif
-#if defined ZEBRA_GROUP
- .group = ZEBRA_GROUP,
+#if defined QUAGGA_GROUP
+ .group = QUAGGA_GROUP,
+#endif
+#ifdef VTY_GROUP
+ .vty_group = VTY_GROUP,
#endif
.caps_p = _caps_p,
.cap_num_p = 2,
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 1da285b..51fa7b5 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -60,9 +60,9 @@
struct zebra_privs_t ospfd_privs =
{
-#if defined(ZEBRA_USER) && defined(ZEBRA_GROUP)
- .user = ZEBRA_USER,
- .group = ZEBRA_GROUP,
+#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
+ .user = QUAGGA_USER,
+ .group = QUAGGA_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index d571320..a87e3b7 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -58,11 +58,14 @@
struct zebra_privs_t ripd_privs =
{
-#if defined(ZEBRA_USER)
- .user = ZEBRA_USER,
+#if defined(QUAGGA_USER)
+ .user = QUAGGA_USER,
#endif
-#if defined ZEBRA_GROUP
- .group = ZEBRA_GROUP,
+#if defined QUAGGA_GROUP
+ .group = QUAGGA_GROUP,
+#endif
+#ifdef VTY_GROUP
+ .vty_group = VTY_GROUP,
#endif
.caps_p = _caps_p,
.cap_num_p = 2,
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index 6c33525..9b76267 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -66,11 +66,14 @@
struct zebra_privs_t ripngd_privs =
{
-#if defined(ZEBRA_USER)
- .user = ZEBRA_USER,
+#if defined(QUAGGA_USER)
+ .user = QUAGGA_USER,
#endif
-#if defined ZEBRA_GROUP
- .group = ZEBRA_GROUP,
+#if defined QUAGGA_GROUP
+ .group = QUAGGA_GROUP,
+#endif
+#ifdef VTY_GROUP
+ .vty_group = VTY_GROUP,
#endif
.caps_p = _caps_p,
.cap_num_p = 2,
diff --git a/zebra/main.c b/zebra/main.c
index c9a19ed..98227ea 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -80,9 +80,9 @@
/* zebra privileges to run with */
struct zebra_privs_t zserv_privs =
{
-#if defined(ZEBRA_USER) && defined(ZEBRA_GROUP)
- .user = ZEBRA_USER,
- .group = ZEBRA_GROUP,
+#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
+ .user = QUAGGA_USER,
+ .group = QUAGGA_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,