X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fauth.c;h=4ca883ca8b7081d4a1437466bf1f5d2e3a249d24;hb=df7501b15fe4ed7f6674acde69dd8f51c5e16b82;hp=e97b48eaf439e730eed5ce80383f90e73ed282c5;hpb=0b3acd3a1122d542e2994d7791cc9127e91778f1;p=ppp.git diff --git a/pppd/auth.c b/pppd/auth.c index e97b48e..4ca883c 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -32,7 +32,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: auth.c,v 1.63 2000/04/04 07:06:49 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.65 2000/04/15 01:27:10 masputra Exp $" #include #include @@ -229,14 +229,14 @@ option_t auth_options[] = { "Use system password database for PAP", 1 }, { "papcrypt", o_bool, &cryptpap, "PAP passwords are encrypted", 1 }, - { "+ua", o_special, setupapfile, + { "+ua", o_special, (void *)setupapfile, "Get PAP user and password from file" }, { "password", o_string, passwd, "Password for authenticating us to the peer", OPT_STATIC, NULL, MAXSECRETLEN }, - { "privgroup", o_special, privgroup, + { "privgroup", o_special, (void *)privgroup, "Allow group members to use privileged options", OPT_PRIV }, - { "allow-ip", o_special, set_noauth_addr, + { "allow-ip", o_special, (void *)set_noauth_addr, "Set IP address(es) which can be used without authentication", OPT_PRIV }, { NULL } @@ -511,9 +511,13 @@ start_networks() new_phase(PHASE_NETWORK); #ifdef HAVE_MULTILINK - if (multilink) - if (mp_join_bundle()) + if (multilink) { + if (mp_join_bundle()) { + if (updetach && !nodetach) + detach(); return; + } + } #endif /* HAVE_MULTILINK */ #if 0