[Rpm-maint] Bug: rpm should set a fixed umask of 0022 before running pre-/post scripts

Michael Schroeder mls at suse.de
Wed May 28 10:37:26 UTC 2008


On Wed, May 28, 2008 at 01:03:13PM +0300, Panu Matilainen wrote:
> Rpm 4.4.2.3 and newer sets umask to 0022 on initialization, so it is 
> already "fixed" upstream. Not that 0022 is a magic universally 
> absolutely correct value for umask, it's just what most things (scriptlets 
> notably) expect.

Actually I do not agree with the fix. At least SUSE's scriptlets
tend to restart daemons if an update is installed, with this
change the new processes will have an umask that is different
from the system's configuration.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}



More information about the Rpm-maint mailing list