[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/13] trans: handle invalid responses to dir_lookup requests
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 05/13] trans: handle invalid responses to dir_lookup requests in fakeroot |
Date: |
Tue, 10 Dec 2013 01:05:49 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 09 Dec 2013 15:16:33 +0100, a écrit :
> * trans/fakeroot.c (netfs_S_dir_lookup): Handle invalid responses to
> dir_lookup requests.
Ack.
> ---
> trans/fakeroot.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/trans/fakeroot.c b/trans/fakeroot.c
> index 6e3b5d4..bee018e 100644
> --- a/trans/fakeroot.c
> +++ b/trans/fakeroot.c
> @@ -276,14 +276,21 @@ netfs_S_dir_lookup (struct protid *diruser,
> break;
>
> case FS_RETRY_MAGICAL:
> - default:
> if (file == MACH_PORT_NULL)
> {
> *retry_port = MACH_PORT_NULL;
> *retry_port_type = MACH_MSG_TYPE_COPY_SEND;
> return 0;
> }
> - break;
> + /* Fallthrough. */
> +
> + default:
> + /* Invalid response to our dir_lookup request. */
> + if (file != MACH_PORT_NULL)
> + mach_port_deallocate (mach_task_self (), file);
> + *retry_port = MACH_PORT_NULL;
> + *retry_port_type = MACH_MSG_TYPE_COPY_SEND;
> + return EOPNOTSUPP;
> }
>
> /* We have a new port to an underlying node.
> --
> 1.7.10.4
>
--
Samuel
RM> Mauvais OS, changer d'OS (c)(r)(tm)
J'ai windows 98 et comment faire pour changer l'os de windows 98?
Dans ajout et suppression du programme et il ne parle pas d'os.
-+- DN in : GNU -+- L'O.S. est las, hélas, c'est là qu'est l'os -+-
- Re: [PATCH 07/13] trans: return nodes locked when creating fake nodes in fakeroot, (continued)
- [PATCH 08/13] trans: fix reference counting and destruction of fake nodes, Justus Winter, 2013/12/09
- [PATCH 11/13] trans: improve the error handling in fakeauth, Justus Winter, 2013/12/09
- [PATCH 09/13] trans: fix locking in fakeroot's netfs_S_dir_lookup, Justus Winter, 2013/12/09
- [PATCH 12/13] trans: unlock nodes with faked attributes in fakeroot, Justus Winter, 2013/12/09
- [PATCH 05/13] trans: handle invalid responses to dir_lookup requests in fakeroot, Justus Winter, 2013/12/09
- Re: [PATCH 05/13] trans: handle invalid responses to dir_lookup requests in fakeroot,
Samuel Thibault <=
- [PATCH 10/13] trans: fix reference counting bug in fakeroot, Justus Winter, 2013/12/09
- [PATCH 13/13] console-client: remove spurious pthread_spin_unlocks, Justus Winter, 2013/12/09
- Re: More fixes for fakeroot-hurd, Samuel Thibault, 2013/12/09
- [PATCH 1/5] utils/settrans: fix the teardown of chrooted environments, Justus Winter, 2013/12/10