mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
skip creation of self-pointing link
This commit is contained in:
parent
e056aa3204
commit
cc3727bfbd
@ -425,7 +425,7 @@ int main(int argc, char **argv)
|
||||
|
||||
PX4_DEBUG("Creating symlink %s -> %s", src_path.c_str(), dest_path.c_str());
|
||||
|
||||
if (dirExists(path_sym_link)) { continue; }
|
||||
if (dirExists(path_sym_link) || src_path == dest_path) { continue; }
|
||||
|
||||
// create sym-links
|
||||
int ret = symlink(src_path.c_str(), dest_path.c_str());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user