pkgsrc/security/sfs/patches/patch-bq
agc 94df3e688c Update sfs to 0.7.2nb7
+ add support for gcc4
2006-10-21 11:53:13 +00:00

31 lines
1,007 B
Text

$NetBSD: patch-bq,v 1.1 2006/10/21 11:53:13 agc Exp $
--- ./rex/ptyd.C.orig 2002-09-21 04:28:08.000000000 +0100
+++ ./rex/ptyd.C
@@ -53,7 +53,7 @@ struct ptyclient {
const uid_t uid;
ihash<const str, pty, &pty::path, &pty::link> ptys;
- ptyclient::ptyclient (ref<axprt_unix> xx, uid_t u)
+ ptyclient (ref<axprt_unix> xx, uid_t u)
: x (xx), s (asrv::alloc (x, ptyd_prog_1)), uid (u) {}
~ptyclient ();
void dispatch (svccb *sbp);
@@ -185,7 +185,7 @@ ptyclient::dispatch (svccb *sbp)
str path;
pty_alloc_res res (0);
if (pty_alloc (&fd, &path)) {
- New pty (this, path, *sbp->template getarg<utmphost> ());
+ New pty (this, path, *sbp->getarg<utmphost> ());
x->sendfd (fd);
*res.path = path;
}
@@ -197,7 +197,7 @@ ptyclient::dispatch (svccb *sbp)
case PTYD_PTY_FREE:
{
int32_t res = 0;
- if (pty *p = ptys[*sbp->template getarg<utmphost> ()])
+ if (pty *p = ptys[*sbp->getarg<utmphost> ()])
delete p;
else
res = ENOENT;