From nobody Mon Jun 14 08:55:07 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1E9495D49D9 for ; Mon, 14 Jun 2021 08:55:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3QJC0FWwz4bV2 for ; Mon, 14 Jun 2021 08:55:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E5B5F11ECE for ; Mon, 14 Jun 2021 08:55:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 15E8t6JS030485 for ; Mon, 14 Jun 2021 08:55:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15E8t61o030484 for bugs@FreeBSD.org; Mon, 14 Jun 2021 08:55:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256592] automountd invoking /etc/autofs/special_hosts with non-hostnames as first argument Date: Mon, 14 Jun 2021 08:55:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: timf@puroto.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256592 --- Comment #1 from Tim Foster --- In the case of the top-level "/net" directory, it makes sense that we're tr= ying to mount "/net/.git" since our bash script is trying to determine if "/net"= is a git repository. However as we browse down the mountpoints from our server, it looks like we= 're trying to effectively run this multiple times, which seems odd. Adding a lo= gger call to special_hosts,=20 =3D=3D=3D 13 getent hosts $1 > /dev/null 14 if [ $? -ne 0 ]; then 15 logger -t info "tried to access a missing host $1" 16 exit 0 17 fi 18 19 out=3D`showmount -E "$1"` 20 [ $? -eq 0 ] || exit 1 21 echo "$out" | awk -v host=3D"$1" \ 22 '{ printf "\"%s\"\t\"%s:%s\" ", $0, host, $0 } END { printf "\n= " }' 23 =3D=3D=3D we then did a tail -f /var/log/messages in one window, and tried browsing t= he mountpoint in another. Here, we'll interleave our shell commands with the l= og output: =3D=3D=3D timf@puroto bg [1]+ tail -f /var/log/messages & timf@puroto timf@puroto cd /net/linn Jun 14 09:51:49 puroto info[4884]: tried to access a missing host .git Jun 14 09:51:49 puroto info[4891]: tried to access a missing host .git Jun 14 09:51:49 puroto info[4899]: tried to access a missing host HEAD timf@puroto cd mnt Jun 14 09:51:54 puroto info[4910]: tried to access a missing host .git Jun 14 09:51:54 puroto info[4917]: tried to access a missing host .git Jun 14 09:51:54 puroto info[4925]: tried to access a missing host HEAD timf@puroto cd tank Jun 14 09:51:57 puroto info[4943]: tried to access a missing host .git Jun 14 09:51:57 puroto info[4950]: tried to access a missing host .git Jun 14 09:51:57 puroto info[4958]: tried to access a missing host HEAD timf@puroto cd archive Jun 14 09:51:59 puroto info[4978]: tried to access a missing host .git Jun 14 09:51:59 puroto info[4985]: tried to access a missing host .git Jun 14 09:51:59 puroto info[4993]: tried to access a missing host HEAD timf@puroto ls -d . 25 ./ timf@puroto cd mail timf@puroto =3D=3D=3D It looks like we're trying to run special_hosts a few times for each level = of the hierarchy, where "linn" is our nfs server, and "mnt/tank/archive" is the first shared filesystem, with "mail" just being a normal directory in that share. --=20 You are receiving this mail because: You are the assignee for the bug.=