Bug 52678

Summary: Fonts not made World Readable when installing in admin mode.
Product: [Unmaintained] kcontrol Reporter: Nick Hill <t0>
Component: kcmfontinstAssignee: Craig Drummond <craig>
Status: RESOLVED FIXED    
Severity: normal CC: ejs50
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nick Hill 2003-01-06 20:17:28 UTC
Version:            (using KDE KDE 3.0.5)
Installed from:    Debian stable Packages
OS:          Linux

Control center->System->Font installer->Administrator mode

Installing fonts for system-wide availablility.

The font installer copies fonts from the original location, changing the user/group to root but keeping the same permissions. 

Problem: If the original font is not world-readable, eg mode 600, when the font is installed in administrator mode, it will not be available to any user account except root.

Solution: In addition to the user/group being changed when the font file is being copied to the system-wide fonts directory, the mode should also be changed to 644. 

example, installing:
nick@s:~$ ls -l nicksfont.ttf
-rw-------    1 nick     nick       117020 Jan  6 19:15 nicksfont.ttf

Copies it to:
nick@s:/usr/X11R6/lib/X11/fonts/Type1$ ls -l nicksfont.ttf
-rw-------    1 root     root       117020 Jan  6 19:17 nicksfont.ttf


Which is not world readable. This will cause some apps to show the existance of the font but not show any rendering of the font.. or not show the font as installed at all. 

We need:
nick@s:/usr/X11R6/lib/X11/fonts/Type1$ ls -l nicksfont.ttf
-rw-r--r--    1 root     root       117020 Jan  6 19:18 nicksfont.ttf
Comment 1 Aaron J. Seigo 2003-01-23 10:45:43 UTC
*** Bug 53294 has been marked as a duplicate of this bug. ***
Comment 2 Craig Drummond 2003-11-07 23:28:14 UTC
CVS HEAD version will install files as 0644, and dirs as 0755