From owner-freebsd-audit Wed Aug 8 7:44:51 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (dialmess.nanolink.com [217.75.135.246]) by hub.freebsd.org (Postfix) with SMTP id 6FA2137B401 for ; Wed, 8 Aug 2001 07:44:46 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 19537 invoked by uid 1000); 8 Aug 2001 14:43:34 -0000 Date: Wed, 8 Aug 2001 17:43:34 +0300 From: Peter Pentchev To: Mark Peek Cc: Bruce Evans , audit@FreeBSD.ORG Subject: Re: [PATCH] fix a file(1) minor POLA stretching Message-ID: <20010808174334.K534@ringworld.oblivion.bg> Mail-Followup-To: Mark Peek , Bruce Evans , audit@FreeBSD.ORG References: <20010808183309.M6269-100000@besplex.bde.org> <20010808123139.G534@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mark@whistle.com on Wed, Aug 08, 2001 at 07:30:55AM -0700 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 08, 2001 at 07:30:55AM -0700, Mark Peek wrote: > At 12:31 PM +0300 8/8/01, Peter Pentchev wrote: [snip] > > beforeinstall: > > $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ > > magic $(DESTDIR)$(MAGICFILE) > >+ cd ${DESTDIR}${MAGICFILE:H} && \ > >+ ${.OBJDIR}/file -C -m ${DESTDIR}${MAGICFILE} > > > > I don't believe the "cd" is necessary and you could get away with: > > ./file -C -m ${DESTDIR}${MAGICFILE} Oh. Of course you're right :) Trivial patch attached :) G'luck, Peter -- .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI Index: src/usr.bin/file/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/file/Makefile,v retrieving revision 1.18 diff -u -r1.18 Makefile --- src/usr.bin/file/Makefile 2001/07/30 03:50:04 1.18 +++ src/usr.bin/file/Makefile 2001/08/08 14:43:22 @@ -58,5 +58,6 @@ beforeinstall: $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ magic $(DESTDIR)$(MAGICFILE) + ./file -C -m $(DESTDIR)$(MAGICFILE) .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message