Index: src/OFFile.m ================================================================== --- src/OFFile.m +++ src/OFFile.m @@ -533,11 +533,12 @@ #ifdef OF_HAVE_CHMOD if (!override) { struct stat s; if (fstat(sourceFile->_fd, &s) == 0) - fchmod(destinationFile->_fd, s.st_mode); + [self changeModeOfFileAtPath: destination + mode: s.st_mode]; } #else (void)override; #endif } @finally {