mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Swap args to dir_link.
This commit is contained in:
parent
efc755b282
commit
29370ca488
@ -64,7 +64,7 @@ DEFUN(bind, (fd, addr, len),
|
|||||||
MACH_MSG_TYPE_COPY_SEND);
|
MACH_MSG_TYPE_COPY_SEND);
|
||||||
if (! err)
|
if (! err)
|
||||||
/* Link the node, now a socket, into the target directory. */
|
/* 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);
|
__mach_port_deallocate (__mach_task_self (), node);
|
||||||
if (! err)
|
if (! err)
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,7 @@ DEFUN(__link, (from, to), CONST char *from AND CONST char *to)
|
|||||||
todir = __file_name_split (to, &toname);
|
todir = __file_name_split (to, &toname);
|
||||||
if (todir != MACH_PORT_NULL)
|
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 (), todir);
|
||||||
}
|
}
|
||||||
__mach_port_deallocate (__mach_task_self (), linknode);
|
__mach_port_deallocate (__mach_task_self (), linknode);
|
||||||
|
@ -101,7 +101,7 @@ DEFUN(__mknod, (file_name, mode, dev),
|
|||||||
|
|
||||||
if (! err)
|
if (! err)
|
||||||
/* Link the node, now a valid device, into the target directory. */
|
/* 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 (), dir);
|
||||||
__mach_port_deallocate (__mach_task_self (), node);
|
__mach_port_deallocate (__mach_task_self (), node);
|
||||||
|
@ -55,7 +55,7 @@ DEFUN(__symlink, (from, to), CONST char *from AND CONST char *to)
|
|||||||
|
|
||||||
if (! err)
|
if (! err)
|
||||||
/* Link the node, now a valid symlink, into the target directory. */
|
/* 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 (), dir);
|
||||||
__mach_port_deallocate (__mach_task_self (), node);
|
__mach_port_deallocate (__mach_task_self (), node);
|
||||||
|
Loading…
Reference in New Issue
Block a user