Overview
Comment: | OFFile: Don't use fchmod().
It's not available on all systems which have chmod(). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
06443a3ae910c1c4bd07946afe3771d0 |
User & Date: | js on 2013-04-27 21:51:19 |
Other Links: | manifest | tags |
Context
2013-04-27
| ||
23:14 | OFTCPSocket: Define _WIN32_WINNT to 0x0501. check-in: 9d3f4208d6 user: js tags: trunk | |
21:51 | OFFile: Don't use fchmod(). check-in: 06443a3ae9 user: js tags: trunk | |
17:57 | Wii: Link only tests with libwiiuse and libbte. check-in: daa4869d18 user: js tags: trunk | |
Changes
Modified src/OFFile.m from [4b255af215] to [c7437b1fa1].
︙ | ︙ | |||
531 532 533 534 535 536 537 | } #ifdef OF_HAVE_CHMOD if (!override) { struct stat s; if (fstat(sourceFile->_fd, &s) == 0) | > | | 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 | } #ifdef OF_HAVE_CHMOD if (!override) { struct stat s; if (fstat(sourceFile->_fd, &s) == 0) [self changeModeOfFileAtPath: destination mode: s.st_mode]; } #else (void)override; #endif } @finally { [sourceFile close]; [destinationFile close]; |
︙ | ︙ |