]> code.ossystems Code Review - openembedded-core.git/commit
libgcc.inc: Fix an issue w/ a recursive symlink
authorMark Hatle <mark.hatle@xilinx.com>
Wed, 22 Jan 2020 00:27:02 +0000 (18:27 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2020 16:54:33 +0000 (16:54 +0000)
commitef28e5a74d939acc98d6e8e9a0efbeb143b8025f
tree20f1812d5abb0480da1eda2c9a0c47138949fd77
parentc7329b17cbbef64984196e2b79a81988db1d2bf3
libgcc.inc: Fix an issue w/ a recursive symlink

If the OS is not Linux, the code could end up generating a recursive symlink.
This can happen because the same symlink can be created twice in a row.  If this
happenes, the second symlink becomes a link to itself within the directory
pointed to by the original link.

In order to prevent this, verify that the destination does not already exist.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/libgcc.inc