Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
fonts-config.29251
fonts-config-homedir-getpwuid.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fonts-config-homedir-getpwuid.patch of Package fonts-config.29251
From iluceno@suse.de Thu May 4 18:10:45 2023 From: Ismael Luceno <iluceno@suse.de> Date: Thu, 04 May 2023 18:10:45 +0000 Subject: Fix uninitialised use of the HOME environment variable Ref: https://bugzilla.suse.com/show_bug.cgi?id=1086804 Ref: https://bugzilla.suse.com/show_bug.cgi?id=1210700 Signed-off-by: Ismael Luceno <iluceno@suse.de> --- Index: fonts-config-20180430/fonts-config =================================================================== --- fonts-config-20180430.orig/fonts-config +++ fonts-config-20180430/fonts-config @@ -388,7 +388,8 @@ my %sysconfig_options = ( "GENERATE_JAVA_FONT_SETUP" , "OPT_JAVA", ); -my $xdg_prefix = "$ENV{HOME}/.config/"; +my $homedir = defined $ENV{"HOME"} ? $ENV{"HOME"} : (getpwuid $>)[7]; +my $xdg_prefix = "$homedir/.config/"; my %files = ( "sysconfig file", "/etc/sysconfig/fonts-config", "user sysconfig file", "fontconfig/fonts-config",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor