On Tuesday 19 February 2008 20:12, Aizer Danny-BDA023 wrote:
> Hi Denys,
> 
> You are right - this is related to fact that the tar command is executed
> in a post-install scriptlet of an RPM package:
> 
> From rpm.spec:
> 
> ...
> %post
> ...
> tar -zxvf patch.tar.gz
> ...
> 
> The rpm command (rpm --install --replacefiles --nodeps file.rpm) is run
> under a shell with umask 077.
> 
> If I run the tar command myself under the same shell, the
> file-permissions are okay, but if the tar command runs in the rpm
> context the permissions aren't okay.

can you run rpm command under strace?

"strace -f -o logfile rpm ...."

and post logfile? Bzip2 it if it's bigger than 20k.

> If I change umask (e.g. to 022) before running the rpm command, then the
> permissions are also okay (at least for the owner and group parts which
> are what matter to me).
> 
> I am not sure this is really related to busybox tar itself after all,
> but if you have any idea what could be going on here (from busybox tar's
> point of view) - why the umask 077 is not ignored by tar when running
> from rpm post-install scriptlet and is ignored otherwise - I'd
> appreciate any such ideas (meanwhile I'll try looking at the rpm sources
> a bit).

Have no idea so far. strace will help.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to