From: Samuel Thibault Date: Tue, 22 Dec 2009 19:47:13 +0000 (-0800) Subject: Hurd: Fix spurious mach_port_deallocate in getcwd. X-Git-Tag: fedora/glibc-2.11.90-5~1^2~5^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e70ffcb0fa9a63e7befc3e513944aeb19d2e4748;p=thirdparty%2Fglibc.git Hurd: Fix spurious mach_port_deallocate in getcwd. --- diff --git a/ChangeLog b/ChangeLog index 07a707b0518..3ff2684f560 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-20 Samuel Thibault + + * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call + __mach_port_deallocate on rootdevid. + 2009-12-17 Martin Schwidefsky * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle diff --git a/sysdeps/mach/hurd/getcwd.c b/sysdeps/mach/hurd/getcwd.c index 7e07e6b4049..7da677eec95 100644 --- a/sysdeps/mach/hurd/getcwd.c +++ b/sysdeps/mach/hurd/getcwd.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98,2002,04 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,93,94,95,96,97,98,2002,2004,2009 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -60,7 +61,6 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir, __mach_port_deallocate (__mach_task_self (), thisid); __mach_port_deallocate (__mach_task_self (), thisdevid); __mach_port_deallocate (__mach_task_self (), rootid); - __mach_port_deallocate (__mach_task_self (), rootdevid); if (dirbuf != NULL) __vm_deallocate (__mach_task_self (),