[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#722978: nss-passwords: Uses wrong profile directory sometimes



Package: nss-passwords
Version: 0.1.1-1
Severity: normal

I have multiple iceweasel profiles, and some don't have .default at the end of the
name. The actual default profile has Default=1 in profile.ini but it
doesn't end in .default

nss-passwords uses a naive algorithm that just looks for any directory
with a name that ends in .default. On my system, it gives:

Fatal error: exception Assert_failure("main.ml", 166, 2)

because it's picking the wrong profile (one that doesn't have a
signons.sqlite yet).

nss-passwords should read ~/.mozilla/firefox/profiles.ini, pick the one
that has Default=1, and use the value of Path and IsRelative to find
it. This will also handle the case when the profile directory isn't
actually in ~/.mozilla/firefox/ (eg when shared between OSs on a
dual-boot system).

This problem can be worked around using the -d option, but the program
is supposed to be able to figure out the correct directory by itself.

Overall, this is a very useful program, however.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nss-passwords depends on:
ii  libc6                     2.17-92+b1
ii  libncurses5               5.9+20130608-1
ii  libnspr4-0d               2:4.10-1
ii  libnss3-1d                2:3.15.1-1
ii  libsqlite3-0              3.8.0.2-1
ii  libtinfo5                 5.9+20130608-1
ii  pinentry-gtk2 [pinentry]  0.8.1-1

nss-passwords recommends no packages.

nss-passwords suggests no packages.

-- no debconf information


Reply to: