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 | 54fb140909714973507ce58b8310624fc5913555 (patch) | |
tree | f62ff7b011099d361d10dd83acade72368cf4bdd /nss.gyp | |
parent | 717a90cfb02a4156512df613b265ad709b0d64f7 (diff) | |
download | nss-hg-54fb140909714973507ce58b8310624fc5913555.tar.gz |
Bug 818686 - XDG Base Directory Specification support with fallback, r=mtNSS_3_42_BETA1
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 'nss.gyp')
-rw-r--r-- | nss.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -199,6 +199,7 @@ [ 'OS=="linux"', { 'dependencies': [ 'cmd/lowhashtest/lowhashtest.gyp:lowhashtest', + 'gtests/sysinit_gtest/sysinit_gtest.gyp:sysinit_gtest', ], }], [ 'disable_libpkix==0', { |