Re: cp: incorrect behaviour when copying recursively

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux