libstdc++: Do not optimize away storing pathname if it's needed
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 08:26:12 +0000 (09:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 22 Jul 2022 11:52:18 +0000 (12:52 +0100)
commit4be7b79d055446a0f647a41ca273ba22a119c7f2
tree5ee5acae20196cfba829f8591d840ec11879a6ea
parent4eb15eceaac0bb900303986fc5164190d3692a0a
libstdc++: Do not optimize away storing pathname if it's needed

libstdc++-v3/ChangeLog:

* src/c++17/fs_dir.cc (_Dir::_Dir) [!_GLIBCXX_HAVE_OPENAT]:
Always store pathname if we don't have openat or unlinkat,
because the full path is needed to open sub-directories and
remove entries.

(cherry picked from commit 835b19936bf30d693783bfa39145a4ce243bbd7c)
libstdc++-v3/src/c++17/fs_dir.cc