Bug 145249

Summary: Please install fonts system wide as readable by all
Product: kcontrol Reporter: Sune Vuorela <debian>
Component: kcmfontinstAssignee: Craig Drummond <craig>
Status: RESOLVED FIXED    
Severity: normal CC: finex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

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