https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118158
Bug ID: 118158 Summary: std::filesystem::equivalent unsupported on socket files Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: davidepesa at gmail dot com Target Milestone: --- Calling std::filesystem::equivalent() on two socket files throws: std::filesystem::__cxx11::filesystem_error: filesystem error: cannot check file equivalence: Operation not supported [/tmp/foo.sock] [foo.sock] Is there a reason for this limitation? Boost.Filesystem seems to work fine in this scenario, it just compares st_ino and st_dev as suggested by [fs.op.equivalent].