Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug that threw an error while searching for linux headers through…
… a symlink (#1821) Summary: This PR removes a condition which checks to see if a host path exists in the filesystem of a process when trying to resolve symlinks. The function `fs::Exists()` returned false for a broken symlink when the expectation was to return true because the path existed although it was a broken symlink. This function would later on fix the broken symlink path by reading its target host and converting the broken path into the actual path. This makes the code removal safe as the next check: `is_symlink` will return an error code if there is no file. Type of change: /kind bug Test Plan: Existing tests pass and deployed the PEM with the updated fix and saw that the Linux header files were found. --------- Signed-off-by: Kartik Pattaswamy <[email protected]>
- Loading branch information