Bug 52678 - Fonts not made World Readable when installing in admin mode.
Summary: Fonts not made World Readable when installing in admin mode.
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcmfontinst (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
: 53294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-06 20:17 UTC by Nick Hill
Modified: 2003-11-07 23:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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