[OE-core] [PATCH v2] inetutils: Fix the rcp couldn't copy subdirectory issue

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jun 17 15:52:38 UTC 2019


On Mon, 2019-06-17 at 01:39 -0700, Zhixiong Chi wrote:
> Since snprintf doesn't support the same src and dst address, it will get
> the wrong result.
> In the sink second recursive call env, the argv and the namebuf will point
> the same address, after free operation for namebuf.
> So the last change for this is wrong, now we just drop the free function
> in the recursive loop to get the correct path of file and directory.
> Even though there will be memory leak, the allocated static area memory
> will be released after process exited.

Has this been submitted upstream? This looks like the kind of issues
which would be best fixed upstream rather than us just carrying a
patch...

Cheers,

Richard



More information about the Openembedded-core mailing list