Leave "user/group" unset when explicitly configuring with "--disable-user" and "--disable-group". This allows quagga to skip unsupported system calls such as setuid() on certain platfroms.
Signed-off-by: Jafar Al-Gharaibeh <[email protected]> --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6206510..b349131 100755 --- a/configure.ac +++ b/configure.ac @@ -351,14 +351,16 @@ AC_SUBST(ISIS_TOPOLOGY_LIB) if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then enable_user="quagga" + AC_DEFINE_UNQUOTED(QUAGGA_USER, "${enable_user}", Quagga User) elif test "${enable_user}" = "no"; then - enable_user="root" + enable_user="" fi if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then enable_group="quagga" + AC_DEFINE_UNQUOTED(QUAGGA_GROUP, "${enable_group}", Quagga Group) elif test "${enable_group}" = "no"; then - enable_group="root" + enable_group="" fi if test x"${enable_vty_group}" = x"yes" ; then @@ -371,8 +373,6 @@ fi AC_SUBST([enable_user]) AC_SUBST([enable_group]) AC_SUBST([enable_vty_group]) -AC_DEFINE_UNQUOTED(QUAGGA_USER, "${enable_user}", Quagga User) -AC_DEFINE_UNQUOTED(QUAGGA_GROUP, "${enable_group}", Quagga Group) enable_configfile_mask=${enable_configfile_mask:-0600} AC_DEFINE_UNQUOTED(CONFIGFILE_MASK, ${enable_configfile_mask}, Mask for config files) -- 2.7.4 _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
