File: 05-suppress-password-output.diff

package info (click to toggle)
ftpmirror 1.96%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,080 kB
  • sloc: perl: 2,496; sh: 1,811; makefile: 51; ansic: 22
file content (27 lines) | stat: -rwxr-xr-x 963 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
#! /bin/sh /usr/share/dpatch/dpatch-run
## suppress-password-output.diff by Dario Minnucci <debian@midworld.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Suppress password output on program execution for non anonymous logins.

@DPATCH@
diff -urNad ftpmirror-1.96~/Fan/Fan.pm ftpmirror-1.96/Fan/Fan.pm
--- ftpmirror-1.96~/Fan/Fan.pm	2007-01-30 04:39:36.767630284 +0100
+++ ftpmirror-1.96/Fan/Fan.pm	2007-01-30 04:44:00.397411909 +0100
@@ -762,8 +762,14 @@
 
 		# Show user account.
 		$msg = "username = ".$p->ftp_user;
-		$msg .= '/'.$p->ftp_pass
-			if $p->ftp_user eq 'ftp' || $p->ftp_user eq 'anonymous';
+
+		#
+		# Suppress password output on program execution for non anonymous logins
+		#
+		#if ($p->ftp_user eq 'ftp' || $p->ftp_user eq 'anonymous') {
+		if ($p->ftp_user eq 'anonymous') {
+			$msg .= '/'.$p->ftp_pass;
+		}
 		plog(5, $msg."\n");
 
 # WE USE DELAYED LOGIN, THAT IS, WE WILL LOGIN WHEN FIRST COMMAND