Use explicit prefix for dbm NSS databases

sql is the default since 3.35

Fixes #10
This commit is contained in:
Filippo Valsorda
2018-06-28 02:08:56 -04:00
parent 443e5b3385
commit 1bc392c3cc

View File

@@ -77,7 +77,7 @@ func (m *mkcert) forEachFirefoxProfile(f func(profile string)) (found int) {
} }
for _, profile := range profiles { for _, profile := range profiles {
if _, err := os.Stat(filepath.Join(profile, "cert8.db")); !os.IsNotExist(err) { if _, err := os.Stat(filepath.Join(profile, "cert8.db")); !os.IsNotExist(err) {
f(profile) f("dbm:" + profile)
found++ found++
} }
if _, err := os.Stat(filepath.Join(profile, "cert9.db")); !os.IsNotExist(err) { if _, err := os.Stat(filepath.Join(profile, "cert9.db")); !os.IsNotExist(err) {