[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] trans/fakeroot: fix ownership of newly created files
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/5] trans/fakeroot: fix ownership of newly created files |
Date: |
Wed, 11 Dec 2013 00:18:21 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Tue 10 Dec 2013 17:50:27 +0100, a écrit :
> Previously, files created in the fakeroot environment were created
> with the uid and gid of the user running fakeroot:
>
> % fakeroot-hurd /bin/sh -c 'touch /tmp/$$; stat --format=%u:%g /tmp/$$'
> 1000:1000
>
> * trans/fakeroot.c (netfs_S_dir_lookup): Fix ownership of newly
> created files.
Ack.
> ---
> trans/fakeroot.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/trans/fakeroot.c b/trans/fakeroot.c
> index 920367d..6882618 100644
> --- a/trans/fakeroot.c
> +++ b/trans/fakeroot.c
> @@ -399,6 +399,8 @@ netfs_S_dir_lookup (struct protid *diruser,
> }
> else
> {
> + err = netfs_attempt_chown (user, np, 0, 0);
> + assert_perror (err); /* Our netfs_attempt_chown cannot fail. */
> *retry_port = ports_get_right (newpi);
> *retry_port_type = MACH_MSG_TYPE_MAKE_SEND;
> ports_port_deref (newpi);
> --
> 1.7.10.4
>
--
Samuel
<L> pour moi le seul qui est autorisé à fasciser, c moi :-)
- Re: [PATCH 05/13] trans: handle invalid responses to dir_lookup requests in fakeroot, (continued)
- 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
- [PATCH 2/5] trans/fakeroot: fix ownership of newly created files, Justus Winter, 2013/12/10
- Re: [PATCH 2/5] trans/fakeroot: fix ownership of newly created files,
Samuel Thibault <=
- [PATCH 3/5] trans/fakeroot: drop else, Justus Winter, 2013/12/10
- [PATCH 4/5] trans/fakeroot: remove dead code, Justus Winter, 2013/12/10
- [PATCH 5/5] trans/fakeroot: remove dead code, Justus Winter, 2013/12/10
- updated 1st patch, Justus Winter, 2013/12/10
- Re: [PATCH 1/5] utils/settrans: fix the teardown of chrooted environments, Samuel Thibault, 2013/12/10