* [PATCH 3/4] git-cvsserver: do not try to descramble empty password
[not found] <-1644121413921817001@unknownmsgid>
@ 2010-07-03 21:23 ` Áshin László
0 siblings, 0 replies; only message in thread
From: Áshin László @ 2010-07-03 21:23 UTC (permalink / raw
To: git
git-cvsserver.perl | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 46e5fdb..01c5b21 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -235,11 +235,15 @@ if ($state->{method} eq 'pserver') {
exit 1;
}
+ if (length($password) > 0) {
+ $password = descramble($password);
+ }
+
my $auth_ok;
open my $passwd, "<", $authdb or die $!;
while (<$passwd>) {
if (m{^\Q$user\E:(.*)}) {
- if (crypt($user, descramble($password)) eq $1) {
+ if (crypt($user, $password) eq $1) {
$auth_ok = 1;
}
};
--
1.7.2.rc1.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-03 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <-1644121413921817001@unknownmsgid>
2010-07-03 21:23 ` [PATCH 3/4] git-cvsserver: do not try to descramble empty password Áshin László
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).