[packages/pwgen] - add missing patch from debian
baggins
baggins at pld-linux.org
Fri Oct 2 23:04:13 CEST 2026
commit 5a529c94d58cdcf18bb1140ba2c1ea7a70c463b5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Oct 2 23:03:55 2026 +0200
- add missing patch from debian
pwgen-capitalize-ambiguous.patch | 24 ++++++++++++++++++++++++
pwgen.spec | 2 +-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/pwgen.spec b/pwgen.spec
index f9945eb..18964bf 100644
--- a/pwgen.spec
+++ b/pwgen.spec
@@ -21,7 +21,7 @@ Program pwgen służy do generowania losowych haseł.
%prep
%setup -q
-%patch -P0 -p0
+%patch -P0 -p1
%build
%{__aclocal}
diff --git a/pwgen-capitalize-ambiguous.patch b/pwgen-capitalize-ambiguous.patch
new file mode 100644
index 0000000..eb511c3
--- /dev/null
+++ b/pwgen-capitalize-ambiguous.patch
@@ -0,0 +1,24 @@
+From: Theodore Ts'o <tytso at mit.edu>
+Date: Fri, 20 Apr 2018 10:15:17 -0400
+X-Dgit-Generated: 2.08-2 3a6150c82b8fb418b761bf3d46983ed4730746fe
+Subject: 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 at mit.edu>
+
+---
+
+--- pwgen-2.08.orig/pw_phonemes.c
++++ pwgen-2.08/pw_phonemes.c
+@@ -111,7 +111,7 @@ try_again:
+ buf[c+len] = '\0'; /* To make strpbrk() happy */
+ cp = strpbrk(buf, pw_ambiguous);
+ if (cp)
+- continue;
++ goto try_again;
+ }
+
+ c += len;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pwgen.git/commitdiff/5a529c94d58cdcf18bb1140ba2c1ea7a70c463b5
More information about the pld-cvs-commit
mailing list