From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UIjEc-0004RQ-6B for ptxdist@pengutronix.de; Thu, 21 Mar 2013 18:25:02 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UIjEa-0003FE-32 for ptxdist@pengutronix.de; Thu, 21 Mar 2013 18:25:00 +0100 Date: Thu, 21 Mar 2013 18:25:00 +0100 From: Michael Olbrich Message-ID: <20130321172500.GE22306@pengutronix.de> References: <1363877889-29002-1-git-send-email-bernhard@bwalle.de> <1363878534-3157-1-git-send-email-bernhard@bwalle.de> <20130321154701.GA6144@pengutronix.de> <20130321162126.GA12397@regiomontanus.your-server.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130321162126.GA12397@regiomontanus.your-server.de> Subject: Re: [ptxdist] [PATCH] ptxd_install_shared: Fix missing links when ${src} is a symlink itself Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Mar 21, 2013 at 05:21:26PM +0100, Bernhard Walle wrote: > * Michael Olbrich [2013-03-21 16:47]: > > > ptxd_install_file "${src}" "${dst}/${filename}" "${usr}" "${grp}" "${mod}" && > > > > > > + src="$(readlink -f "${src}")" && > > > find "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do > > > > I think this would be nicer and should work too, right: > > > > find -H "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do > > That works indeed. Should I send a new patch? Yes please. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de