[Bug 276381] automountd

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 Jan 2024 17:12:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276381

            Bug ID: 276381
           Summary: automountd
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com

Using /etc/autofs/include -> /etc/autofs/include_nis_nullfs and NIS automount
maps, automountd finds a wildcard entry before a specific entry.

/etc/auto_master contains:
+auto.master

ypcat -k auto.master contains:
/foo auto.foo

ypcat -k auto.foo contains:
* nfshost1:/d/&
bar nfshost2:/d/&

nfshost1:/d does not have a 'bar' file nor subdirectory.


In this example, trying to automount /foo/bar finds the wildcard entry first
and fails.

I would have expected a specific entry to be found before attempting to use the
wildcard entry.

-- 
You are receiving this mail because:
You are the assignee for the bug.