Boost C++ Libraries: Ticket #2531: Workaround for broken remove() broken https://svn.boost.org/trac10/ticket/2531 <p> operations_test fails on QNX 6.4.0 with:<br /> Warning: line 820 exception reports default_error_condition().value() 1, should be 93 </p> <p> Line 821 also fails with boost::filesystem::remove: Operation not permitted. </p> <p> The problem is that a workaround for QNX and other OSes in posix_remove() compares the return value of unlink() against EPERM instead of comparing errno against EPERM. </p> <p> Could it ever have worked? EPERM is typically 1 while the return value from unlink() in case of failure is typically -1. </p> <p> The attached patch resolves the issue and the operations_test test now passes. As a side note, the test also passes fully with the workaround disabled on QNX 6.4.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2531 Trac 1.4.3 Niklas Angare <li51ckf02@…> Mon, 24 Nov 2008 02:14:55 GMT attachment set https://svn.boost.org/trac10/ticket/2531 https://svn.boost.org/trac10/ticket/2531 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">operations.cpp.patch</span> </li> </ul> Ticket Beman Dawes Tue, 13 Jan 2009 13:30:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2531#comment:1 https://svn.boost.org/trac10/ticket/2531#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/50562" title="Filesystem: Fix #2531 by applying suggested patch">[50562]</a>) Filesystem: Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2531" title="#2531: Patches: Workaround for broken remove() broken (closed: fixed)">#2531</a> by applying suggested patch </p> Ticket