threads / patch / 20987

patchcvs: initialize empty password

Subject: [PATCH] cvs: initialize empty password

## tl;dr

One message between Sep 17, 2009 and Sep 17, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Clemens Buchacher· Sep 17, 2009, 07:21 UTC · lore

If we do not read a password from the command line, and there are no passwords stored in .cvspass, we have to initialize the password with just "A".

This fixes a regression introduced by 3fb9d582 (Do not scramble password read from .cvspass).

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
---
 git-cvsimport.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Show changes to git-cvsimport.perl +1 −0
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index d741115..1ad20ac 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -253,6 +253,7 @@ sub conn {
 					}
 				}
 			};
+			$pass = "A" unless $pass;
 		}
 
 		my ($s, $rep);
-- 
1.6.5.rc0

← back to recent threads