Skip to content

Commit

Permalink
Bug 818686 - XDG Base Directory Specification support with fallback, …
Browse files Browse the repository at this point in the history
…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

--HG--
extra : rebase_source : 846de94c6fc309e56bfc9d1247f13a1b15894fbf
  • Loading branch information
denisfa committed Jan 9, 2019
1 parent 4aea92b commit 24dd141
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions automation/abi-check/expected-report-libnsssysinit.so.txt
@@ -0,0 +1,8 @@
Function symbols changes summary: 2 Removed, 0 Added function symbols not referenced by debug info
Variable symbols changes summary: 0 Removed, 0 Added variable symbol not referenced by debug info

2 Removed function symbols not referenced by debug info:

_fini
_init

0 comments on commit 24dd141

Please sign in to comment.