From 7cecc6ad3f0b48c46bc2b2eb0aa9a89aabf9e8ba Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 16 Jul 2020 14:59:49 +0200 Subject: [PATCH] Avoid attempting to use /etc/xdg as base config home, fixes #9053, refs #9045 --- src/Composer/Factory.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index e0947b46a..7fd9af344 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -74,9 +74,6 @@ class Factory if (self::useXdg()) { // XDG Base Directory Specifications $xdgConfig = getenv('XDG_CONFIG_HOME'); - if (!$xdgConfig && is_dir('/etc/xdg')) { - $xdgConfig = '/etc/xdg'; - } if (!$xdgConfig) { $xdgConfig = $userDir . '/.config'; }