Commit Graph

90 Commits

Author SHA1 Message Date
Toralf Förster
1459a31e07 randnum.c: cleanup after CVE-2013-4442 fix
Get rid of 2 left-overs from commit ccda6f21 and in addition remove a misleading comment.

Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-09-02 21:53:34 -04:00
partev
8fffbc7cbf
fix a repeated word typo
the word "completely" is repeated twice
2019-09-02 12:20:32 -04:00
Theodore Ts'o
fd5c02dc75 debian: update changelog for 2.08-2 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-08-03 11:44:46 -04:00
Theodore Ts'o
7205e8d3fa Merge commit 'a4b5dcd24c31cc457d15abd1019a6d8767280c35' 2019-08-03 11:44:03 -04:00
Theodore Ts'o
a4b5dcd24c debian: update changelog to reflect new packaging changes
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-08-03 11:35:20 -04:00
Theodore Ts'o
63b97d82c8 debian: update to debhelper compat level 12
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-08-03 11:34:59 -04:00
Theodore Ts'o
0065266773 debian: update standards compliance to 4.4.0
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-08-03 10:19:30 -04:00
Theodore Ts'o
70e0754510 debian: add gbp.conf file
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-08-03 09:55:42 -04:00
Theodore Ts'o
54d6c1c0e8 Fix unreliable support of --capitalize when --ambiguous is requested
When generating passwords using the default phonemes mechanism,
--capitalize isn't reliably supported when ambiguous characters are
removed.  Fix this.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2018-04-20 10:15:17 -04:00
Theodore Ts'o
89f57afa4c debian: use a simplified debian/rules
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2018-04-20 10:03:13 -04:00
Theodore Ts'o
c25787fce9 Update debian changelog, Makefile, and man page for the 2.08 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:55:47 -04:00
Theodore Ts'o
c7cd69cc10 debian: set the upstream homepage and git repository to github
Update the debian/control and debian/copyright files to point at the
pwgen repository on github.

Addresses-Debian-Bug: #454500, #855495, #846517

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
1cf91de5ea Add the build and autom4te.cache directories to .gitignore
Also skip them when building the source_tar_file.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
2fbe51a75d Fix up "make depend" so it works correctly
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
df22acea06 Fix uninitialized variable warning in randnum.c
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
9534f32c2b Rename configure.in to configure.ac
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
18378498e3 debian: update policy conformance to 4.0.0 and use dh compat level 10
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Helmut Grohne
e5ad9a2f05 debian: add cross-compilation support to debian/rules
Addresses-Debian-Bug: #695148

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
febc508934 Teach pwgen the --remove-chars option
The --remove-chars (or -r) option removes characters from the set of
characters used to generate passwords.

This feature was suggested in Florian Lohoff in the Debian Bug
arguments to remove that would cause the original patch to hang in an
infinite loop.  The algorithm used is also more efficient than the
original patch.

Addresses-Debian-Bug: #836334

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
fddf48f1dc Fix --no-vowels and --no-secure to not disable --no-capitalize
This fixes a bug which casued:

	pwgen --no-vowels --no-capitalize
and
	pwgen --no-capitalize --no-vowels

to have different results.

Addresses-Debian-Bug: #791908

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
69bdb3c671 Make pwgen -s more "secure" for very short passwords
For password lengths of 1 and 2, the generated passwords were all
lower case, or one lower case and one number, respetively.  This is
not terribly "secure", although how passwords of lengths less than 3
are hardly secure anyway.

Addresses-Debian-Bug: #666725

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
309b686a28 Don't print a trailing space after the last password
Addresses-Debian-Bug: #794635

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:54 -04:00
Theodore Ts'o
df7d8419ee Fix resource leak when using the pwgen -H option
Reported-by: dcb314@users.sf.net

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-07 00:36:29 -04:00
Theodore Ts'o
38282881f1 debian: NMU 2.07-1.1 acknowledgement
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-06 16:31:00 -04:00
Wookey
1cc4267d5d debian: Add multiarch metadata
Addresses-Debian-Bug: #693964

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-06 16:26:30 -04:00
Lars Wirzenius
69be63a040 Fix incomplete sentence in pwgen man page
Also update password version while we're at it.

Addresses-Debian-Bug: #579178

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-06 16:24:16 -04:00
Andreas Sundstrom
ad86aa25ba Stop -s flag overwriting others
Specifying -s overwrites other flags without this fix
(i.e. -s -y not the same as -y -s)

Addresses-Debian-Bug: #436912

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-06 16:12:23 -04:00
Theodore Ts'o
d273124237 Remove old .cvsignore file
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:43:16 -04:00
Theodore Ts'o
3596dfc13b Convert to use autoconf 2.50+
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:42:59 -04:00
Theodore Ts'o
00118ccac4 Update changelog for pwgen 2.07 relase
Also remove the outdated Changelog file, and fix up the makefile
target for source_tar_file so it works properly given the new source
tree layout.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:37:33 -04:00
Theodore Ts'o
6ba1623fe7 Switch to using the debian 3.0 (quilt) source format
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:26:31 -04:00
Theodore Ts'o
d0b7bbaa12 Add debian build-arch and build-indep targets
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:26:06 -04:00
Theodore Ts'o
a02d2ba020 Update Debian copyright file to use machine readable format 2014-10-27 23:12:04 -04:00
Theodore Ts'o
55da256cb0 Update to debhelper 8 and use dpkg-buildflags to get hardening flags
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 23:11:58 -04:00
Theodore Ts'o
642e541c39 Fix portability problem if unsigned ints are not 4 bytes
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 21:55:50 -04:00
Theodore Ts'o
e13c85a776 Fix pwgen -B so it use capital Os when generating non-ambiguous passwords
Patch supplied from: Niels Laukens <niels@dest-unreach.be>

Addresses-Launchpad-Bug: 638418

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 21:47:17 -04:00
Theodore Ts'o
ccda6f21c6 Fail hard if /dev/urandom and /dev/random is not available
CVE-2013-4442

Addresses-Debian-Bug: #767008
Addresses-Launchpad-Bug: #1183213

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 21:43:01 -04:00
Theodore Ts'o
8a2172c8d4 Remove backwards compatibility for no-tty mode
This was considered a security vulnerability, so let's nuke it and be
done with it.  It was original there to provide backwards
compatibility for old web cgi scripts, but at this point, they deserve
to be broken.  :-)

Patch supplied by Adam Borowski <kilobyte@angband.pl>

Addresses: CVE-2013-4440
Addresses-Debian-Bug: #725507

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-10-27 21:00:56 -04:00
Theodore Ts'o
05930ed763 Update Debian Standards-Version to policy version 3.7.2.2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 19:41:49 -04:00
Theodore Ts'o
13992e30a4 Fix debian lintian warning: debian-rules-ignores-make-clean-error
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 19:41:46 -04:00
Theodore Ts'o
056a157f29 Update Debian changelog for 2.06 release 2007-07-04 19:22:38 -04:00
Theodore Ts'o
6af5d279c4 Add -v option to generate passwords without vowels
Addresses-Debian-Bug: #387461

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 19:09:32 -04:00
Theodore Ts'o
65d697e3c5 Make the -s option imply the -nc options
This makes "secure" passwords more secure, without breaking backwards
compatibility with older pwgen programs.  The exact definition of
"more secure" was never defined in the man pages, so this gives us
some more wiggle room.

Update the pwgen man page to make it clear that the future behavior of
pwgen when stdout is not a tty may change further.

Addresses-Debian-Bug: #427969

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 18:56:06 -04:00
Theodore Ts'o
e487aa2989 Fix typo in pwgen man page.
Addresses-Debian-Bug: #376147

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 18:44:02 -04:00
Theodore Ts'o
ebc2b62c23 Fix the pwgen -Bc option combination
Addresses-Debian-Bug: #355153

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 18:15:44 -04:00
Theodore Ts'o
db3fb98b9a Fix pwgen -Bs so that this option combination works correctly
The combination of omitting ambiguous characters and secure password
generation did not work correctly.

Addresses-Debian-Bug: #368010

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 18:06:51 -04:00
Theodore Ts'o
d5998215ed Add .gitignore file
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 17:55:04 -04:00
tytso
5830677d29 Release of pwgen 2.05 2006-01-16 04:20:16 +00:00
tytso
6b173620be Fix spelling mistakes in the pwgen man page (Addresses Debian Bug: #323538) 2006-01-16 04:18:33 +00:00
tytso
7e39a481cf Fix bug which would cause pwgen to loop forever if the password length
specified is 1.
2006-01-16 04:13:12 +00:00