umask in rpm scriptlets - yes or no?

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Sun Mar 4 12:33:42 UTC 2007


Michael Schwendt wrote:
> Does anybody know whether anything has been decided on setting an
> explicit "umask 022" at the beginning of scriptlets?

I don't know the example of 022, however for 133 I know
a example.
--------------------------------------------------------
[tasaka1 at localhost i386]$ rpm -q --scripts fonts-japanese
postinstall scriptlet (using /bin/sh):
{
     umask 133
     touch /usr/share/fonts/japanese/TrueType 2> /dev/null && {
         /usr/bin/ttmkfdir -d /usr/share/fonts/japanese/TrueType -o 
/usr/share/fonts/japanese/TrueType/fonts.scale
         mkfontdir /usr/share/fonts/japanese/TrueType
         /usr/sbin/chkfontpath -q -a /usr/share/fonts/japanese/TrueType
     }
     mkfontdir /usr/share/fonts/japanese/misc && /usr/sbin/chkfontpath -q -a 
/usr/share/fonts/japanese/misc
     if [ -x /usr/bin/fc-cache ]; then
         /usr/bin/fc-cache /usr/share/fonts
     fi
}
postuninstall scriptlet (using /bin/sh):
<snip>
--------------------------------------------------------

Mamoru




More information about the fedora-devel-list mailing list