Differences From Artifact [17aa806995]:
- File src/OFFile.m — part of check-in [ce99d76d79] at 2013-12-15 14:57:39 on branch trunk — OFFile: Clean up the stat mess. (user: js, size: 20953) [annotate] [blame] [check-ins using]
To Artifact [e46a299ae7]:
- File
src/OFFile.m
— part of check-in
[feaf3faad5]
at
2013-12-15 17:56:32
on branch trunk
— OFFile: Require a full path for (sym)links.
This was forgotten when copy and move were changed. (user: js, size: 20519) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
753 754 755 756 757 758 759 | void *pool; if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); | < < < < < < | 753 754 755 756 757 758 759 760 761 762 763 764 765 766 | void *pool; if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); if (link([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE]) != 0) @throw [OFLinkFailedException exceptionWithSourcePath: source destinationPath: destination]; objc_autoreleasePoolPop(pool); |
︙ | ︙ | |||
780 781 782 783 784 785 786 | void *pool; if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); | < < < < < < | 774 775 776 777 778 779 780 781 782 783 784 785 786 787 | void *pool; if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); if (symlink([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE]) != 0) @throw [OFCreateSymbolicLinkFailedException exceptionWithSourcePath: source destinationPath: destination]; objc_autoreleasePoolPop(pool); |
︙ | ︙ |