diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2025-11-17 21:01:33 +0000 |
|---|---|---|
| committer | Jonathan Wakely <jwakely@redhat.com> | 2025-11-17 21:18:24 +0000 |
| commit | 77278e0292cd23f0d1ddbb5e6e18064e119bdd6f (patch) | |
| tree | 7566ae1d9ae01324575c354be709305e31c5c094 /libjava/classpath/java/io/FileNotFoundException.java | |
| parent | 61f154cfe18aebb56a6b09564f00410127f933c4 (diff) | |
libstdc++: Fix error reporting for filesystem::rename on Windows [PR122726]
Use the __last_system_error() function and the system_category to
convert the Windows error to a generic one.
libstdc++-v3/ChangeLog:
PR libstdc++/122726
* src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
(rename): Use __last_system_error to set errno accurately.
* testsuite/27_io/filesystem/operations/rename.cc: Test
error_code matches errc::no_such_file_or_directory.
Diffstat (limited to 'libjava/classpath/java/io/FileNotFoundException.java')
0 files changed, 0 insertions, 0 deletions
