# [PATCH] cvs: initialize empty password

1 messages from 2009-09-17 to 2009-09-17. Participants: Clemens Buchacher.
Thread: https://gitlist.dev/t/20987

## Clemens Buchacher, 2009-09-17 07:21

Subject: [PATCH] cvs: initialize empty password
Message-ID: <20090917072101.GA12769@localhost>
URL: https://gitlist.dev/e/20090917072101.GA12769%40localhost

```
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(-)

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

```
