From nobody Wed Jun 09 15:00:31 2021 X-Original-To: freebsd-current@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 7F6EC7CF648 for ; Wed, 9 Jun 2021 15:00:49 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G0VfT0tphz4lZX; Wed, 9 Jun 2021 15:00:49 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 4dd4b8d4; Wed, 9 Jun 2021 15:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=y3wAs3VS VnqxGd9v3IifyEQMsSY=; b=MFICKmiamI78tvoeTJXQPdiZEXBLNoYjUqsGzfi+ imalQPvhW7CHLuf8HzSqTYbl9O/KCZ34fvgRfTm+mw/ScKLlmrGuXhkunXihJzW/ txoOzJYWwwumxAuH9ayN4H2lHyZxy9RtQuwkKcBpAR8+rr6WlX5IY/mF/TDnVkuf SDCQCbH3vO3/pCHJni4dfS2XJN6BegNHnVwcgISFcaqiH2r7XKKBX+OWFCBR5y6o QpZqXyjbOpwwvrvOhu33ZIk7cGH4nwAwRh/ql7PV/JtsHNeILBONsFuhVyNHRQYa iNiLsEs6Dt0521z0s96xvrSmBI2EQTgjTNRqOgib7fzZCg== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=aa xRM8Brs7ztgeS6cL0E7yrsSXfdurYd6yz2Ew6JAmCLF1IvrM2fYBJHK96XzOhtt6 zy3EmyuwXmaquxKY4CZfMkcU0hsxROYxi2l/8y7+cFcBWCotgOvwM29wh08q0a/z xMEWNpFFRodA5ePMcGWt4jKRBEtR5fS+jYc33efvoIR3g6+J/Z9WOxS5R1x4iV94 Br44qawyWXWlg/AtDU8zM0StHuUAlWpRBxzZkEq3MM/uzWzPZhcGSR7MXJwVUCb9 FQMmO4Buzd+vc9PlAPsSgsVmyXjkAhZklyZR2+bp7rEY7AWNbO3Xx4aQHK0O5kq/ SFn8bC27qWkx1bWpWz3A== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 6d2031ab (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Wed, 9 Jun 2021 15:00:46 +0000 (UTC) Date: Wed, 9 Jun 2021 17:00:31 +0200 From: Michael Gmelin To: Ian Lepore Cc: freebsd-current@freebsd.org Subject: Re: Files in /etc containing empty VCSId header Message-ID: <20210609170031.58adad10@bsd64.grem.de> In-Reply-To: <2a0036767ef362e6f9f76c1c472029112de2937d.camel@freebsd.org> References: <202106082211.158MBrbe010419@gndrsh.dnsmgr.net> <2a0036767ef362e6f9f76c1c472029112de2937d.camel@freebsd.org> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4G0VfT0tphz4lZX X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 09 Jun 2021 08:23:20 -0600 Ian Lepore wrote: > On Wed, 2021-06-09 at 18:54 +1000, Peter Jeremy via freebsd-current > wrote: > > On 2021-Jun-08 17:13:45 -0600, Ian Lepore wrote: =20 > > > On Tue, 2021-06-08 at 15:11 -0700, Rodney W. Grimes wrote: =20 > > > > There is a command for that which does or use to do a pretty > > > > decent job of it called whereis(1). =20 > >=20 > > Thanks. That looks useful. > > =20 > > > revolution > whereis ntp.conf > > > ntp.conf: > > > revolution > whereis netif > > > netif: > > > revolution > whereis services > > > services: > > >=20 > > > So how does that help me locate the origin of these files in the > > > source > > > tree? =20 > >=20 > > It works for me=E2=84=A2: > > server% whereis ntp.conf > > ntp.conf: /usr/src/usr.sbin/ntp/ntpd/ntp.conf > > server% whereis netif =20 > > netif: /usr/src/libexec/rc/rc.d/netif > > server% whereis services > > services: /usr/src/contrib/unbound/services > >=20 > > Is your source tree somewhere other than /usr/src? > > =20 >=20 > My /usr/src is a symlink to the actual source tree on a different > filesystem (but it is the source tree the running system was built > from). It seems odd that that would make whereis(1) not work. >=20 whereis(1) falls back to using "locate" if it can't find the sources directly, so e.g., in case of `whereis -s ls', it will get through the results of `locate '*'/ls` and see if they match "^/usr/src" (or whatever you gave as source dir using -S). Therefore if locate '*'/ntp.conf | grep "^/usr/src" gives you a result, then `whereis -s ntp.conf' will too. See also https://cgit.freebsd.org/src/tree/usr.bin/whereis/whereis.c#n607 Michael (re-sent, as the previous mail bounced from the list) --=20 Michael Gmelin