From owner-freebsd-questions Thu Apr 1 23:39:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 9E0C715056 for ; Thu, 1 Apr 1999 23:39:37 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA16601; Fri, 2 Apr 1999 17:09:17 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id RAA95473; Fri, 2 Apr 1999 17:09:15 +0930 (CST) Message-ID: <19990402170915.E413@lemis.com> Date: Fri, 2 Apr 1999 17:09:15 +0930 From: Greg Lehey To: Jon Hamilton Cc: mmercer@ipass.net, freebsd-questions@FreeBSD.ORG Subject: Re: removing a.out executables found in /usr/sbin? References: <19990402132258.V413@lemis.com> <19990402073055.3F1F8155@woodstock.monkey.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990402073055.3F1F8155@woodstock.monkey.net>; from Jon Hamilton on Fri, Apr 02, 1999 at 01:30:54AM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 2 April 1999 at 1:30:54 -0600, Jon Hamilton wrote: > > In message <19990402132258.V413@lemis.com>, Greg Lehey wrote: >> On Thursday, 1 April 1999 at 22:17:01 -0500, Michael E. Mercer wrote: >>> Hello all, >>> >>> I have found a few executables in /usr/sbin that are >>> a.out format...(at least that is what the command 'file' is telling >>> me) >>> >>> Is it feasible to delete these files with no impact??? >> >> That depends on whether you want to use them or not :-) >> >>> I would assume a 'make world' recompiled everything it needed >>> in ELF format, therefore any a.out format files would not be >>> needed?!?!?! >> >> I don't think they're from FreeBSD. If so, they would have been >> overwritten by new versions. > > Unless there _is_ no new version; /sbin/dset is a good example of > cruft that gets left behind after upgrading to 3.1, and there are > other examples as well. $ file /sbin/dset /sbin/dset: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped $ uname -a FreeBSD freebie.lemis.com 4.0-CURRENT FreeBSD 4.0-CURRENT #135: Tue Mar 23 19:18:27 CST 1999 grog@freebie.lemis.com:/T/src/FREEBIE/src/sys/compile/FREEBIE i386 I suspect this is one of the things that people moved from one directory to another (typically from /usr/bin to /bin or /usr/sbin to /sbin). I've looked at my oldest machine and found no /usr/sbin/dset, but I did find a /usr/sbin/sysctl, which has been replaced with /sysctl. I consider this an obscenity to move things without warning people and without removing the old version on install, but to quote a core team member: > I think it is the responsibility of the sysadmin to clean out old > garbage. 2.2 installs a symlink (although that is broken and there > is a PR or two about it -- LN_FLAGS never actually worked), so there > should no problem there. 3.0 was for developers who know what they > are doing ;), so there should be no problem there. 4.0 is for > developers... > > login.conf and dotfiles put /sbin before /usr/sbin in $PATH, and no > one should put "." in $PATH, so the new version should always be > preferred. If you feel like putting in a PR, go for it. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message