Ticket #2531: operations.cpp.patch

File operations.cpp.patch, 410 bytes (added by Niklas Angare <li51ckf02@…>, 14 years ago)
  • libs/filesystem/src/operations.cpp

     
    583583        // rmdir() or unlink() as indicated.
    584584        // Same bug also reported for QNX, with the same fix.
    585585        int err = ::unlink( p );
    586         if ( err != EPERM )
     586        if ( err == 0 || errno != EPERM )
    587587          return err;
    588588        return ::rmdir( p );
    589589#     else