diff options
-rw-r--r-- | libfshelp/ChangeLog | 7 | ||||
-rw-r--r-- | libfshelp/fetch-root.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libfshelp/ChangeLog b/libfshelp/ChangeLog index 943b76e3..ec1b5cfe 100644 --- a/libfshelp/ChangeLog +++ b/libfshelp/ChangeLog @@ -1,3 +1,10 @@ +Wed Apr 28 03:06:19 1999 Thomas Bushnell, BSG <tb@mit.edu> + + * fetch-root.c (fshelp_fetch_root): Don't deallocate the + INIT_PORT_CWDIR after starting the passive translator; we still + need to keep our reference around until the getroot call happens. + Reported by Marcus Brinkmann (Marcus.Brinkmann@ruhr-uni-bochum.de). + Tue Apr 20 21:43:20 1999 Thomas Bushnell, BSG <tb@mit.edu> * fetch-root.c (fshelp_fetch_root): When starting a passive diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c index 76839993..f5971a6f 100644 --- a/libfshelp/fetch-root.c +++ b/libfshelp/fetch-root.c @@ -136,8 +136,10 @@ fshelp_fetch_root (struct transbox *box, void *cookie, 0, &control); for (i = 0; i <= STDERR_FILENO; i++) mach_port_deallocate (mach_task_self (), fds[i]); + for (i = 0; i < INIT_PORT_MAX; i++) - mach_port_deallocate (mach_task_self (), ports[i]); + if (i != INIT_PORT_CWDIR) + mach_port_deallocate (mach_task_self (), ports[i]); mutex_lock (box->lock); |