1 |
On Mon, 28 Sep 2015 11:52:52 -0700 |
2 |
Zac Medico <zmedico@g.o> wrote: |
3 |
|
4 |
> On 09/27/2015 06:24 AM, Mike Gilbert wrote: |
5 |
> > This reverts commit 0dc7b2a3923508896cf217f325b8339d73353553. |
6 |
> > |
7 |
> > The "optimized" chmod is no longer recursive, which causes files to |
8 |
> > be missed. |
9 |
> > |
10 |
> > X-Gentoo-Bug: 561368 |
11 |
> > X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561368 |
12 |
> > --- |
13 |
> > bin/phase-helpers.sh | 4 ++-- |
14 |
> > 1 file changed, 2 insertions(+), 2 deletions(-) |
15 |
> > |
16 |
> > diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh |
17 |
> > index b446060..efd2cfa 100644 |
18 |
> > --- a/bin/phase-helpers.sh |
19 |
> > +++ b/bin/phase-helpers.sh |
20 |
> > @@ -531,8 +531,8 @@ unpack() { |
21 |
> > done |
22 |
> > # Do not chmod '.' since it's probably ${WORKDIR} and |
23 |
> > PORTAGE_WORKDIR_MODE # should be preserved. |
24 |
> > - find . -mindepth 1 '!' -type l '!' -perm /a+rX,u+w,g-w,o-w |
25 |
> > \ |
26 |
> > - -exec chmod -f a+rX,u+w,g-w,o-w '{}' + |
27 |
> > + find . -mindepth 1 -maxdepth 1 ! -type l -print0 | \ |
28 |
> > + ${XARGS} -0 chmod -fR a+rX,u+w,g-w,o-w |
29 |
> > } |
30 |
> > |
31 |
> > econf() { |
32 |
> > |
33 |
> |
34 |
> LGTM. |
35 |
> |
36 |
> Unfortunately, the find call in the 'optimized' version is useless, |
37 |
> because it fails like this: |
38 |
> |
39 |
> $ find . -mindepth 1 '!' -type l '!' -perm /a+rX,u+w,g-w,o-w |
40 |
> find: `./mod_auth_token': Permission denied |
41 |
> |
42 |
> Meanwhile, chmod -R works fine. |
43 |
|
44 |
Applied and pushed, |
45 |
|
46 |
Thanks |
47 |
-- |
48 |
Brian Dolbec <dolsen> |