mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
* hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
Reported by Jon Arney <jarney1@cox.net>. 2002-02-23 Roland McGrath <roland@frob.com> * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to declaration. (__hurd_errno_location): Function removed.
This commit is contained in:
@@ -198,7 +198,7 @@ write_corefile (int signo, const struct hurd_signal_detail *detail)
|
||||
if (! err && file != MACH_PORT_NULL)
|
||||
/* The core dump into FILE succeeded, so now link it into the
|
||||
directory. */
|
||||
err = __dir_link (file, coredir, name, 1);
|
||||
err = __dir_link (coredir, file, name, 1);
|
||||
__mach_port_deallocate (__mach_task_self (), file);
|
||||
__mach_port_deallocate (__mach_task_self (), coredir);
|
||||
return !err && file != MACH_PORT_NULL;
|
||||
|
||||
Reference in New Issue
Block a user