$NetBSD: patch-bg,v 1.1 2006/10/21 11:53:13 agc Exp $ --- ./agent/sfsagent.C.orig 2002-11-27 22:51:39.000000000 +0000 +++ ./agent/sfsagent.C @@ -148,7 +148,7 @@ sfsagent::agentdisp (svccb *sbp) break; case AGENTCB_AUTHINIT: if (name) { - sfsagent_authinit_arg *aa = sbp->template getarg (); + sfsagent_authinit_arg *aa = sbp->getarg (); if (aa->requestor) { str s; if (name == "sfscd") @@ -164,10 +164,10 @@ sfsagent::agentdisp (svccb *sbp) gmgr.authmore (sbp); break; case AGENTCB_LOOKUP: - sfslookup (*sbp->template getarg (), wrap (lookupres, sbp)); + sfslookup (*sbp->getarg (), wrap (lookupres, sbp)); break; case AGENTCB_REVOKED: - revcheck (*sbp->template getarg (), wrap (revokedres, sbp)); + revcheck (*sbp->getarg (), wrap (revokedres, sbp)); break; case AGENTCB_CLONE: if (axprt_unix *ux = xprt2unix (x)) { @@ -223,7 +223,7 @@ sfsagent::ctldisp (svccb *sbp) case AGENTCTL_ADDEXTAUTH: { sfsagent_addextauth_arg *aa = - sbp->template getarg (); + sbp->getarg (); extauth *ea = New extauth (x, &gmgr, this); ea->pid = aa->pid; ea->expire = aa->expire; @@ -244,7 +244,7 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_ADDKEY: { - sfs_addkey_arg *aa = sbp->template getarg (); + sfs_addkey_arg *aa = sbp->getarg (); key *nk; nk = New key (&gmgr); // XXX - hack for testing new version of protocol. @@ -268,7 +268,7 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_REMAUTH: { - sfs_remauth_arg *ra = sbp->template getarg (); + sfs_remauth_arg *ra = sbp->getarg (); authmeth *a; bool ok = false; switch (ra->type) { @@ -318,7 +318,7 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_ADDCERTPROG: { - sfsagent_certprog *arg = sbp->template getarg (); + sfsagent_certprog *arg = sbp->getarg (); str av0; if (arg->av.size () > 0 && (av0 = find_program (arg->av[0]))) { bool found = false; @@ -351,7 +351,7 @@ sfsagent::ctldisp (svccb *sbp) size_t n = certprogs.size (); sfsagent_certprog cp; rxfilter rxf; - sfsauth_realm *arg = sbp->template getarg (); + sfsauth_realm *arg = sbp->getarg (); bool found = false; while (n--) { @@ -383,7 +383,7 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_ADDREVOKEPROG: { - sfsagent_revokeprog *arg = sbp->template getarg (); + sfsagent_revokeprog *arg = sbp->getarg (); str av0; if (arg->av.size () > 0 && (av0 = find_program (arg->av[0]))) { arg->av[0] = av0; @@ -416,7 +416,7 @@ sfsagent::ctldisp (svccb *sbp) case AGENTCTL_SETNOREVOKE: { sfsagent_norevoke_list *arg - = sbp->template getarg (); + = sbp->getarg (); for (sfs_hash *hid = arg->base (); hid < arg->lim (); hid++) norevoke.insert (*hid); sbp->reply (NULL); @@ -445,13 +445,13 @@ sfsagent::ctldisp (svccb *sbp) else if (name) sbp->replyref ((int32_t) EBUSY); else { - setname (*sbp->template getarg ()); + setname (*sbp->getarg ()); sbp->replyref ((int32_t) 0); } break; case AGENTCTL_REX: { - sfsagent_rex_arg *prca = sbp->template getarg (); + sfsagent_rex_arg *prca = sbp->getarg (); if (name) { warn << name << ": " << prca->dest << "(rexsess)\n"; } @@ -465,13 +465,13 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_KILLSESS: { - sbp->replyref (kill_rexsess (*sbp->template getarg ())); + sbp->replyref (kill_rexsess (*sbp->getarg ())); break; } case AGENTCTL_ADDSRPNAME: { sfsagent_srpname_pair *arg = - sbp->template getarg (); + sbp->getarg (); if (arg->srpname && arg->srpname.len () > 0 && arg->sfsname && arg->sfsname.len () > 0) { @@ -500,7 +500,7 @@ sfsagent::ctldisp (svccb *sbp) } case AGENTCTL_LOOKUPSRPNAME: { - sfsagent_srpname *arg = sbp->template getarg (); + sfsagent_srpname *arg = sbp->getarg (); str *sfsname = srpnames[*arg]; sfsagent_srpname_res res (false);