ubc-systopia / Indaleko

Indaleko Project
GNU Affero General Public License v3.0
0 stars 1 forks source link

Review handling of soft links #37

Open fsgeek opened 7 months ago

fsgeek commented 7 months ago

Based upon behavior I was seeing on Windows with broken soft links, this needs to be more carefully considred.

One possibility is to use lstat instead of stat on the file, so that we don't follow soft links.

On Windows I saw that stat returned bogus data when attempting to process a broken soft link but I cannot confirm that this is always going to be the case. I do not know what the behavior is on Linux or Mac.

This work item is to investigate further and then plan out how we should handle this.

fsgeek commented 7 months ago

This is partially addressed in commit 4dd2a52 but there's the open question of how to handle symlinks in the not broken and broken cases.