From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay01.ispgateway.de ([80.67.31.39]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UIiF7-0000RW-SN for ptxdist@pengutronix.de; Thu, 21 Mar 2013 17:21:31 +0100 Received: from [78.47.165.117] (helo=regiomontanus.your-server.de) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1UIiF6-0006VD-2E for ptxdist@pengutronix.de; Thu, 21 Mar 2013 17:21:28 +0100 Date: Thu, 21 Mar 2013 17:21:26 +0100 From: Bernhard Walle Message-ID: <20130321162126.GA12397@regiomontanus.your-server.de> References: <1363877889-29002-1-git-send-email-bernhard@bwalle.de> <1363878534-3157-1-git-send-email-bernhard@bwalle.de> <20130321154701.GA6144@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130321154701.GA6144@pengutronix.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 * 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? Regards, Bernhard -- ptxdist mailing list ptxdist@pengutronix.de