summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-bn
blob: c32d292b122060db081c0cd483a2d44db6c17e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-bn,v 1.1 2006/10/21 11:53:13 agc Exp $

--- ./sfsrwsd/filesrv.C.orig	2002-08-21 14:54:50.000000000 +0100
+++ ./sfsrwsd/filesrv.C
@@ -358,7 +358,7 @@ bool
 filesrv::fixarg (svccb *sbp, reqstate *rqsp)
 {
   fh3trans fht (fh3trans::DECODE, fhkey);
-  if (!nfs3_transarg (fht, sbp->template getarg<void> (), sbp->proc ())) {
+  if (!nfs3_transarg (fht, sbp->getarg<void> (), sbp->proc ())) {
     nfs3exp_err (sbp, nfsstat3 (fht.err));
     return false;
   }
@@ -378,7 +378,7 @@ filesrv::fixarg (svccb *sbp, reqstate *r
    * creating multiple mount points for each server.  Is this bad? */
   if (!sbp->getaui ()
       && !anon_checkperm (sbp, fsp->options,
-			  *sbp->template getarg<nfs_fh3> () == fsp->fh_root))
+			  *sbp->getarg<nfs_fh3> () == fsp->fh_root))
     return false;
 #else
   /* The other option is to disallow this.  Then commands like "ls
@@ -386,7 +386,7 @@ filesrv::fixarg (svccb *sbp, reqstate *r
   if (!sbp->getaui ()
       && !anon_checkperm (sbp, fsp->options,
 			  (fsp == fstab.base ()
-			   && (*sbp->template getarg<nfs_fh3> ()
+			   && (*sbp->getarg<nfs_fh3> ()
 			       == fsp->fh_root))))
     return false;
 #endif
@@ -394,7 +394,7 @@ filesrv::fixarg (svccb *sbp, reqstate *r
   switch (sbp->proc ()) {
   case NFSPROC3_LOOKUP:
     {
-      diropargs3 *doa = sbp->template getarg<diropargs3> ();
+      diropargs3 *doa = sbp->getarg<diropargs3> ();
       if (doa->name == ".." && doa->dir == fsp->fh_root) {
 	if (!getfsno (fsp)) {
 	  nfs3exp_err (sbp, NFS3ERR_ACCES);
@@ -411,7 +411,7 @@ filesrv::fixarg (svccb *sbp, reqstate *r
   case NFSPROC3_READDIR:
   case NFSPROC3_READDIRPLUS:
     {
-      nfs_fh3 *rpa = sbp->template getarg<nfs_fh3> ();
+      nfs_fh3 *rpa = sbp->getarg<nfs_fh3> ();
       if (*rpa == fsp->fh_root)
 	rqsp->rootfh = true;
       break;