From ajk@physics.purdue.edu Sat Sep  4 13:08:41 1999
Return-Path: <ajk@physics.purdue.edu>
Received: from london.physics.purdue.edu (london.physics.purdue.edu [128.210.67.35])
	by hub.freebsd.org (Postfix) with ESMTP id 7388615811
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  4 Sep 1999 13:08:34 -0700 (PDT)
	(envelope-from ajk@physics.purdue.edu)
Received: from poynting.physics.purdue.edu (poynting.physics.purdue.edu [128.210.146.58])
	by london.physics.purdue.edu (8.8.8/8.8.8) with ESMTP id PAA13847;
	Sat, 4 Sep 1999 15:08:06 -0500 (EST)
Received: (from ajk@localhost)
	by poynting.physics.purdue.edu (8.9.2/8.9.2) id PAA21488;
	Sat, 4 Sep 1999 15:08:06 -0500 (EST)
	(envelope-from ajk@physics.purdue.edu)
Message-Id: <199909042008.PAA21488@poynting.physics.purdue.edu>
Date: Sat, 4 Sep 1999 15:08:06 -0500 (EST)
From: ajk@purdue.edu
Sender: ajk@physics.purdue.edu
Reply-To: ajk@purdue.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] pawd broken for type "nfsl"
X-Send-Pr-Version: 3.2

>Number:         13577
>Category:       bin
>Synopsis:       [PATCH] pawd broken for type "nfsl"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep  4 13:10:01 PDT 1999
>Closed-Date:    Fri Jun 15 21:57:48 PDT 2001
>Last-Modified:  Fri Jun 15 21:58:01 PDT 2001
>Originator:     Andrew J. Korty
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Physics Computer Network, Purdue University
>Environment:

All of our i386 systems running 3.1-RELEASE or 3.2-RELEASE have
this problem.  Other releases on other architectures are likely to
have it, too.

>Description:

The pawd utility should canonicalize paths so they don't contain
AMD local mount points.  However, non-canonical paths are returned
unchanged when the filesystem type is "nfsl."  When pawd is traversing
AMD's mount table, it only considers filesystems of types "link"
and "nfs".  Filesystems of type "nfsl" should be considered as
well.

>How-To-Repeat:

Invoke pawd with any path whose filesystem is of type "nfsl".

>Fix:
	
--- contrib/amd/amq/pawd.c.orig	Sat Sep  4 14:51:22 1999
+++ contrib/amd/amq/pawd.c	Sat Sep  4 14:51:01 1999
@@ -77,7 +77,8 @@
 find_mt(amq_mount_tree *mt, char *dir)
 {
   while (mt) {
-    if (STREQ(mt->mt_type, "link") || STREQ(mt->mt_type, "nfs")) {
+    if (STREQ(mt->mt_type, "link") || STREQ(mt->mt_type, "nfs") ||
+	STREQ(mt->mt_type, "nfsl")) {
       int len = strlen(mt->mt_mountpoint);
       if (NSTREQ(mt->mt_mountpoint, dir, len) &&
 	  ((dir[len] == '\0') || (dir[len] == '/'))) {

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Fri Jun 15 21:57:48 PDT 2001 
State-Changed-Why:  
Fixed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13577 
>Unformatted:
