diff options
author | EdĂȘnis Freindorfer Azevedo <edenisfa@gmail.com> | 2019-01-10 09:38:25 +1100 |
---|---|---|
committer | EdĂȘnis Freindorfer Azevedo <edenisfa@gmail.com> | 2019-01-10 09:38:25 +1100 |
commit | d08af9bc172142bcc6a987e1600110aba2955182 (patch) | |
tree | f52c2de3269fec92a80aad5f2a6b3a56a04fa6ea /lib/sysinit | |
parent | cbcabf989e6006f0bab689dfa97e253f5daa9a73 (diff) | |
download | nss-hg-d08af9bc172142bcc6a987e1600110aba2955182.tar.gz |
Bug 818686 - XDG Base Directory Specification support with fallback, r=mt
Summary:
We check if $HOME/.pki and $HOME/.pki/nssdb exist; if they do, then we use
this path. Otherwise, use ${XDG_DATA_HOME:-$HOME/.local/share}/pki/nssdb
Test Plan:
Create dummy empty dir and set HOME to it. Then, check if getUserDb returns:
1. $HOME/.pki/nssdb when this path exists;
2. $HOME/.local/share/pki/nssdb when $HOME/.pki/nssdb does not and XDG_DATA_HOME is not defined;
3. $XDG_DATA_HOME/pki/nssdb when $HOME/.pki/nssdb does not exist and XDG_DATA_HOME is defined.
Reviewers: mt
Reviewed By: mt
Bug #: 818686
Differential Revision: https://phabricator.services.mozilla.com/D14007
Diffstat (limited to 'lib/sysinit')
0 files changed, 0 insertions, 0 deletions