Re: [PATCH] libstdc++: Fix error handling in filesystem::remove_all (PR93201)

2020-01-08 Thread Jonathan Wakely
On 08/01/20 16:44 +, Jonathan Wakely wrote: When recursing into a directory, any errors that occur while removing a directory entry are ignored, because the subsequent increment of the directory iterator clears the error_code object. This fixes that bug by checking the result of each recursi

[PATCH] libstdc++: Fix error handling in filesystem::remove_all (PR93201)

2020-01-08 Thread Jonathan Wakely
When recursing into a directory, any errors that occur while removing a directory entry are ignored, because the subsequent increment of the directory iterator clears the error_code object. This fixes that bug by checking the result of each recursive operation before incrementing. This is a change