ObjFW  Check-in [ba2b4661de]

Overview
Comment:Fix createSymbolicLinkAtPath:withDestinationPath:.

The arguments were inverted.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ba2b4661debfc9d467f0bbd8d7e6dda97c7366e6d009316382833a9cdd5079d0
User & Date: js on 2013-12-09 22:07:43
Other Links: manifest | tags
Context
2013-12-09
22:08
Add +[OFFile symbolicLinkExistsAtPath:]. check-in: f193f3fa8c user: js tags: trunk
22:07
Fix createSymbolicLinkAtPath:withDestinationPath:. check-in: ba2b4661de user: js tags: trunk
2013-12-08
17:43
Clean up OFHash and the Hashing categories. check-in: 75f2aa5096 user: js tags: trunk
Changes

Modified src/OFFile.h from [ddafd2190c] to [26dd50cf9e].

209
210
211
212
213
214
215
216
217
218
219


220
221
222


223
224
225
226
227
228
229
209
210
211
212
213
214
215


216
217
218
219
220


221
222
223
224
225
226
227
228
229







-
-


+
+

-
-
+
+








#ifdef OF_HAVE_SYMLINK
/*!
 * @brief Creates a symbolic link for an item.
 *
 * Not available on Windows.
 *
 * @param source The path of the item for which a symbolic link should be
 *		 created
 * @param destination The path of the item which should symbolically link to the
 *		      source
 * @param source The path of the item for which a symbolic link should be
 *		 created
 */
+ (void)createSymbolicLinkAtPath: (OFString*)source
	     withDestinationPath: (OFString*)destination;
+ (void)createSymbolicLinkAtPath: (OFString*)destination
	     withDestinationPath: (OFString*)source;

/*!
 * @brief Returns the destination of the symbolic link at the specified path.
 *
 * @param path The path to the symbolic link
 * @return The destination of the symbolic link at the specified path
 */

Modified src/OFFile.m from [c8979c52b6] to [0e60eafa58].

639
640
641
642
643
644
645
646
647


648
649
650
651
652
653
654
639
640
641
642
643
644
645


646
647
648
649
650
651
652
653
654







-
-
+
+







			    destinationPath: destination];

	objc_autoreleasePoolPop(pool);
}
#endif

#ifdef OF_HAVE_SYMLINK
+ (void)createSymbolicLinkAtPath: (OFString*)source
	     withDestinationPath: (OFString*)destination
+ (void)createSymbolicLinkAtPath: (OFString*)destination
	     withDestinationPath: (OFString*)source
{
	void *pool;

	if (source == nil || destination == nil)
		@throw [OFInvalidArgumentException exception];

	pool = objc_autoreleasePoolPush();