cp: incorrect behaviour when copying recursively

Sascha Hauer s.hauer at pengutronix.de
Wed Apr 19 01:07:23 PDT 2017


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.

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