* [PATCH] Do not scramble password read from .cvspass
@ 2009-09-04 11:58 Pascal Obry
2009-09-04 16:21 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Pascal Obry @ 2009-09-04 11:58 UTC (permalink / raw)
To: git list
Passwords stored in .cvspass are already scrambled, we do not
want to scramble them twice. Only passwords read from the
command line are scrambled.
This fixes a regression introduced by:
b2139dbd72d16e40eddfd5b9ad1314703b39fe65
Signed-off-by: Pascal Obry <pascal@obry.net>
---
git-cvsimport.perl | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 593832d..c5cdcae 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -238,7 +238,10 @@ sub conn {
}
my $rr = ":pserver:$user\@$serv:$port$repo";
- unless ($pass) {
+ if ($pass) {
+ $pass = $self->_scramble($pass);
+ } else
+ {
open(H,$ENV{'HOME'}."/.cvspass") and do {
#
:pserver:cvs@mea.tmt.tele.fi:/cvsroot/zmailer Ah<Z
while (<H>) {
@@ -253,8 +256,6 @@ sub conn {
};
}
- $pass = $self->_scramble($pass);
-
my ($s, $rep);
if ($proxyhost) {
--
1.6.4.2.253.g0b1fac
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Do not scramble password read from .cvspass
2009-09-04 11:58 [PATCH] Do not scramble password read from .cvspass Pascal Obry
@ 2009-09-04 16:21 ` Junio C Hamano
2009-09-07 10:39 ` Dirk Hörner
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2009-09-04 16:21 UTC (permalink / raw)
To: Dirk Hoerner; +Cc: git list, pascal
Pascal Obry <pascal@obry.net> writes:
> Passwords stored in .cvspass are already scrambled, we do not
> want to scramble them twice. Only passwords read from the
> command line are scrambled.
>
> This fixes a regression introduced by:
> b2139dbd72d16e40eddfd5b9ad1314703b39fe65
>
> Signed-off-by: Pascal Obry <pascal@obry.net>
> ---
Thanks, Pascal. This bug is not in any tagged release yet, and I am happy
you caught it before -rc0 ;-)
Dirk, does the patch look Ok to you?
> git-cvsimport.perl | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/git-cvsimport.perl b/git-cvsimport.perl
> index 593832d..c5cdcae 100755
> --- a/git-cvsimport.perl
> +++ b/git-cvsimport.perl
> @@ -238,7 +238,10 @@ sub conn {
> }
> my $rr = ":pserver:$user\@$serv:$port$repo";
>
> - unless ($pass) {
> + if ($pass) {
> + $pass = $self->_scramble($pass);
> + } else
> + {
> open(H,$ENV{'HOME'}."/.cvspass") and do {
> #
> :pserver:cvs@mea.tmt.tele.fi:/cvsroot/zmailer Ah<Z
> while (<H>) {
> @@ -253,8 +256,6 @@ sub conn {
> };
> }
>
> - $pass = $self->_scramble($pass);
> -
> my ($s, $rep);
> if ($proxyhost) {
>
> --
> 1.6.4.2.253.g0b1fac
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Do not scramble password read from .cvspass
2009-09-04 16:21 ` Junio C Hamano
@ 2009-09-07 10:39 ` Dirk Hörner
0 siblings, 0 replies; 3+ messages in thread
From: Dirk Hörner @ 2009-09-07 10:39 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git list, pascal
Hi Junio,
On Fri, Sep 4, 2009 at 6:21 PM, Junio C Hamano<gitster@pobox.com> wrote:
> Dirk, does the patch look Ok to you?
The patch looks fine :-)
Ciao,
Dirk
>
>> git-cvsimport.perl | 7 ++++---
>> 1 files changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/git-cvsimport.perl b/git-cvsimport.perl
>> index 593832d..c5cdcae 100755
>> --- a/git-cvsimport.perl
>> +++ b/git-cvsimport.perl
>> @@ -238,7 +238,10 @@ sub conn {
>> }
>> my $rr = ":pserver:$user\@$serv:$port$repo";
>>
>> - unless ($pass) {
>> + if ($pass) {
>> + $pass = $self->_scramble($pass);
>> + } else
>> + {
>> open(H,$ENV{'HOME'}."/.cvspass") and do {
>> #
>> :pserver:cvs@mea.tmt.tele.fi:/cvsroot/zmailer Ah<Z
>> while (<H>) {
>> @@ -253,8 +256,6 @@ sub conn {
>> };
>> }
>>
>> - $pass = $self->_scramble($pass);
>> -
>> my ($s, $rep);
>> if ($proxyhost) {
>>
>> --
>> 1.6.4.2.253.g0b1fac
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-07 10:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 11:58 [PATCH] Do not scramble password read from .cvspass Pascal Obry
2009-09-04 16:21 ` Junio C Hamano
2009-09-07 10:39 ` Dirk Hörner
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 NNTP newsgroup(s).