Bug 145249 - Please install fonts system wide as readable by all
Summary: Please install fonts system wide as readable by all
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:
Depends on:
Blocks:
 
Reported: 2007-05-10 00:46 UTC by Sune Vuorela
Modified: 2008-12-30 17:29 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 Sune Vuorela 2007-05-10 00:46:04 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages

Hi!

When I install a font system wide, I get the font installed with exactly the same permissions as the original file (minus write permissions). e.g. I get
755 if original permissions is 755, 775 or 777.
700 if original permissions is 700 (and probably also 722 and 720)
600 if original permissions is 600 (and probably also 620 and 622)
545 if original permissions is 567

This is a problem if the original file has 600, for example. The font is then only usable by root when installed system wide.

It looks like http://bugs.kde.org/show_bug.cgi?id=52678

This bug is originally reported in debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421991

/Sune
Comment 1 Craig Drummond 2007-11-15 23:24:37 UTC
I do set the permissions to 0644 - via chmod. Guess I also need to set umask as well, I wasnt aware that this would be needed if I used the c umask() function. I'll look into this.
Comment 2 Craig Drummond 2007-11-16 17:16:28 UTC
SVN commit 737575 by craig:

Set umask to 0 before calling chmod.
CCBUG:145249


 M  +2 -2      kio/Helper.cpp  
 M  +3 -3      kio/KioFonts.cpp  
 M  +10 -0     lib/Misc.cpp  
 M  +6 -2      lib/Misc.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=737575