MACH_MSG_TYPE_COPY_SEND);
if (! err)
/* Link the node, now a socket, into the target directory. */
- err = __dir_link (node, dir, n);
+ err = __dir_link (dir, node, n);
__mach_port_deallocate (__mach_task_self (), node);
if (! err)
{
todir = __file_name_split (to, &toname);
if (todir != MACH_PORT_NULL)
{
- err = __dir_link (linknode, todir, toname);
+ err = __dir_link (todir, linknode, toname);
__mach_port_deallocate (__mach_task_self (), todir);
}
__mach_port_deallocate (__mach_task_self (), linknode);
if (! err)
/* Link the node, now a valid device, into the target directory. */
- err = __dir_link (node, dir, name);
+ err = __dir_link (dir, node, name);
__mach_port_deallocate (__mach_task_self (), dir);
__mach_port_deallocate (__mach_task_self (), node);
if (! err)
/* Link the node, now a valid symlink, into the target directory. */
- err = __dir_link (node, dir, name);
+ err = __dir_link (dir, node, name);
__mach_port_deallocate (__mach_task_self (), dir);
__mach_port_deallocate (__mach_task_self (), node);