31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
$NetBSD: patch-an,v 1.1 2006/10/21 11:53:13 agc Exp $
|
|
|
|
--- ./sfsmisc/attrcache.C.orig 2002-09-19 21:04:20.000000000 +0100
|
|
+++ ./sfsmisc/attrcache.C
|
|
@@ -154,7 +154,7 @@ void
|
|
nfsserv_ac::getcall (nfscall *nc)
|
|
{
|
|
if (nc->proc () == NFSPROC3_GETATTR) {
|
|
- const fattr3exp *f = ac.attr_lookup (*nc->template getarg<nfs_fh3> ());
|
|
+ const fattr3exp *f = ac.attr_lookup (*nc->getarg<nfs_fh3> ());
|
|
if (f) {
|
|
getattr3res res (NFS3_OK);
|
|
*res.attributes = *reinterpret_cast<const fattr3 *> (f);
|
|
@@ -163,7 +163,7 @@ nfsserv_ac::getcall (nfscall *nc)
|
|
}
|
|
}
|
|
else if (nc->proc () == NFSPROC3_ACCESS) {
|
|
- access3args *a = nc->template getarg<access3args> ();
|
|
+ access3args *a = nc->getarg<access3args> ();
|
|
int32_t perm = ac.access_lookup (a->object, nc->getaid (), a->access);
|
|
if (perm > 0) {
|
|
access3res res (NFS3_OK);
|
|
@@ -192,7 +192,7 @@ nfsserv_ac::getreply (nfscall *nc)
|
|
|
|
if (nc->proc () == NFSPROC3_ACCESS) {
|
|
access3res *ares = static_cast<access3res *> (nc->resp);
|
|
- access3args *a = nc->template getarg<access3args> ();
|
|
+ access3args *a = nc->getarg<access3args> ();
|
|
if (ares->status)
|
|
ac.flush_access (a->object, nc->getaid ());
|
|
else
|