cp: incorrect behaviour when copying recursively

Peter Mamonov pmamonov at gmail.com
Fri Apr 21 09:53:13 PDT 2017


Hi Sasha,

On Wed, Apr 19, 2017 at 10:07:23AM +0200, Sascha Hauer wrote:
> Hi Peter,
> 
> On Fri, Apr 14, 2017 at 01:10:51PM +0300, Peter Mamonov wrote:
> > Hi,
> > 
> > The "cp -r <src> <dst>" command omits top directory, when the trailing "/" is 
> > present in the <src> string. Here is the test case:
> 
> I can confirm that. It turned out this is because we used GNU basename
> in barebox, but we should use POSIX basename. Please check the series
> I just sent out.

Tested the `next` branch: everything works as expected.

Thanks!
Peter

> 
> Sascha
> 
> -- 
> 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 |



More information about the barebox mailing list