libstdc++: Fix typo in comment in src/c++17/fs_dir.cc
libstdc++-v3/ChangeLog: * src/c++17/fs_dir.cc: Fix typo in comment.
This commit is contained in:
parent
6f7626f7a7
commit
9306960694
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ fs::recursive_directory_iterator::__erase(error_code* ecptr)
|
|||
|
||||
#if _GLIBCXX_FILESYSTEM_IS_WINDOWS
|
||||
// _Dir::unlink uses fs::remove which uses std::system_category() for
|
||||
// Windows errror codes, so we can't just check for EPERM and EISDIR.
|
||||
// Windows error codes, so we can't just check for EPERM and EISDIR.
|
||||
// Use directory_entry::refresh() here to check if we have a directory.
|
||||
// This can be a TOCTTOU race, but we don't have openat or unlinkat to
|
||||
// solve that on Windows, and generally don't support symlinks anyway.
|
||||
|
|
Loading…
Add table
Reference in a new issue