Date: Sat, 4 Sep 1999 15:08:06 -0500 (EST) From: ajk@purdue.edu To: FreeBSD-gnats-submit@freebsd.org Subject: bin/13577: [PATCH] pawd broken for type "nfsl" Message-ID: <199909042008.PAA21488@poynting.physics.purdue.edu>
next in thread | raw e-mail | index | archive | help
>Number: 13577
>Category: bin
>Synopsis: [PATCH] pawd broken for type "nfsl"
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 4 13:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909042008.PAA21488>
