On Wed, Feb 08, 2012 at 10:57:57AM +0100, Andreas Bießmann wrote:
> On 08.02.2012 10:40, Michael Olbrich wrote:
> > On Wed, Feb 08, 2012 at 08:56:30AM +0100, Andreas Bießmann wrote:
> >> Hi again ...
> >>
> >> On 08.02.12 08:40, Andreas Bießmann wrote:
> >>> Hi Michael,
> >>>
> >>> On 08.02.12 08:05, Michael Olbrich wrote:
> >>>> On Tue, Feb 07, 2012 at 11:40:37PM +0100, Andreas Bießmann wrote:
> 
> <snip>
> 
> >> I guess the problem is directories on the way (= 'parents') are created
> >> with default credentials -> umask has an effect. But the last directory
> >> in path is set to given parameters (-m755).
> >>
> >> Can you reproduce this too?
> > 
> > Yes, I can. The problem is not actually the umask, but the fact, that we're
> > creating several directory levels with sudo but only change the ownership
> > of the last one.
> > I think we should use 'install -m0755 -d ${dir}' instead. That sets the
> > correct permissions for the parent directories without messing with umask
> 
> Ok, so will you provide a proper patch?

I've pushed a patch. Please verify it works.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to