File: help-to-stdout.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 (32 lines) | stat: -rw-r--r-- 809 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
27
28
29
30
31
32
From 9a924490042c9c12b6b9b954bb53ecd3eee69c87 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Sat, 17 Dec 2022 12:29:25 +0000
Subject: Send --help output to stdout, not stderr

Forwarded: no
Last-Update: 2022-12-17

Patch-Name: help-to-stdout.patch
---
 makepasswd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/makepasswd b/makepasswd
index 83038b6..81d9227 100755
--- a/makepasswd
+++ b/makepasswd
@@ -440,12 +440,12 @@ for ($ctr=0; $ctr < $CountUsed; $ctr++)
 exit(0);
 
 #
-# sub Help:  Display help information on STDERR.
+# sub Help:  Display help information on STDOUT.
 #
 
 sub Help
 {
-	print STDERR
+	print
 "$Program v$Version, a utility to generate and/or encrypt passwords.
 
 Copyright (c) $Copyright by $Author.  All rights are reserved by