What if the file to be removed is externally removed between the symlink_status and the ::remove call? This is probably QoI because filesystem race, but it seems reasonable to double check errno if ::remove fails and not fail if the failure is due to the file not existing.
- [PATCH] PR libstdc++/83626 Don't throw for remove("&q... Jonathan Wakely
- Re: [PATCH] PR libstdc++/83626 Don't throw for remove... Tim Song
- Re: [PATCH] PR libstdc++/83626 Don't throw for re... Jonathan Wakely
- Re: [PATCH] PR libstdc++/83626 Don't throw fo... Jonathan Wakely
- Re: [PATCH] PR libstdc++/83626 Don't thro... Jonathan Wakely