mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-17 19:42:21 +00:00
Bug #9725: Don't look in root's $HOME for config files, that's just confusing.
This commit is contained in:
parent
748cfbc820
commit
d15339a92c
5 changed files with 1 additions and 13 deletions
|
|
@ -558,7 +558,6 @@ xf86pathIsSafe(const char *path)
|
|||
* %E config file environment ($XORGCONFIG) as an absolute path
|
||||
* %F config file environment ($XORGCONFIG) as a relative path
|
||||
* %G config file environment ($XORGCONFIG) as a safe path
|
||||
* %D $HOME
|
||||
* %P projroot
|
||||
* %M major version number
|
||||
* %% %
|
||||
|
|
@ -703,14 +702,6 @@ DoSubstitution(const char *template, const char *cmdline, const char *projroot,
|
|||
} else
|
||||
BAIL_OUT;
|
||||
break;
|
||||
case 'D':
|
||||
if (!home)
|
||||
home = getenv("HOME");
|
||||
if (home && xf86pathIsAbsolute(home))
|
||||
APPEND_STR(home);
|
||||
else
|
||||
BAIL_OUT;
|
||||
break;
|
||||
case 'P':
|
||||
if (projroot && xf86pathIsAbsolute(projroot))
|
||||
APPEND_STR(projroot);
|
||||
|
|
|
|||
Loading…
Reference in a new issue