Public bug reported:

Affected / tested: Ubuntu 16.04.2 LTS | 16.04
Package version: pwgen 2.07-1.1ubuntu1

As we pipe passwords (batch-)generated by pwgen into various other
tools, it came to our attention that with the newest version 2.07 (e.g.
in Xenial builds), pwgen won't honor the -c command line switch for
including _at least_ one capitalized letter. As can be seen in the
upstream pwgen changelog, the -B behavior was changed because of
ambigious characters still popping up in 2.06 (e.g. in Trusty release:
O/0 is still included). But with changing said behavior the
aforementioned bug seems to have been brought into the fold.

To test, we can just create a bunch of about 20 passwords with pwgen in
'xenial':

# pwgen -cnB 16 16
eewei7pev9axae4H
oofoongoose9geiR
Ja9nucae4deijie7
fohWee4ahsha9ooc
Vees7ohyeishu4da
ang3Eegh3heumogh
aeri9eecuceo7Ui7
aKiiyoh4zieWee9e
ohF9iethuo7Aigha
quai7taicisheixu   <<<
ooziocahF9thi4ah
maepheuV9eeRaeHo
we9bohthoohunooL
tohohshuqu9Aix3u
ibaikoopohyieV4i
ohNgie4ieyohxiCh

Same command running on 'trusty' release, we couldn't reproduce the
issue even with about 50-100 passwords generated. Also the same issue
seems to exist within 2.07 versions in Arch or Fedora, so seems version
related. Only older releases like 2.06 seem to honor the -c and -n
setting correctly when used together with -B, but then produce a few
ambigious characters like 0 and O.

Greets
Jens

** Affects: pwgen (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1691698

Title:
  command line argument -B breaking -c criteria

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pwgen/+bug/1691698/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to