File: long-clearfrom-output-format.patch

package info (click to toggle)
makepasswd 1.10-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: perl: 4,063; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 163a2a29c3343198a26a28f1da423c19c06fdac6 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Sat, 17 Dec 2022 12:30:16 +0000
Subject: Fix output formatting when --clearfrom password is >= 12 characters

Author: Steven Van Acker
Bug-Ubuntu: https://bugs.launchpad.net/bugs/894739
Last-Update: 2022-12-17

Patch-Name: long-clearfrom-output-format.patch
---
 makepasswd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/makepasswd b/makepasswd
index 81d9227..f0792f6 100755
--- a/makepasswd
+++ b/makepasswd
@@ -164,6 +164,7 @@ $Clear ne "" and do
 	$Clear =~ s/[\n]*$//;
 	close CLEARFROM;
 	$CryptMode = 4;
+	$CharFormat = length($Clear) + 3;
 };
 
 #