diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-19 10:03:22 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-19 10:03:22 +0000 |
commit | 8c4e33ebced20af66506843df16b9e13e587ae67 (patch) | |
tree | dd1b7c8c642378c7f25a9b66f0aa5334a10d68a2 | |
parent | d0d426eca916d6f4282df43fcd14e7ef9edcdd77 (diff) | |
download | rpmdrake-8c4e33ebced20af66506843df16b9e13e587ae67.tar rpmdrake-8c4e33ebced20af66506843df16b9e13e587ae67.tar.gz rpmdrake-8c4e33ebced20af66506843df16b9e13e587ae67.tar.bz2 rpmdrake-8c4e33ebced20af66506843df16b9e13e587ae67.tar.xz rpmdrake-8c4e33ebced20af66506843df16b9e13e587ae67.zip |
hide password in logs (#6260)
-rwxr-xr-x | rpmdrake | 4 | ||||
-rw-r--r-- | rpmdrake.spec | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -1119,7 +1119,9 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $distant_number; foreach my $l (@$list) { foreach (sort values %$l) { - standalone::explanations("Installing package $_"); + my $showable = $_; + $showable =~ s|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)|$1xxxx$2|; #- hide password + standalone::explanations("Installing package $showable"); /^file|removable/ or $distant_number++; } } diff --git a/rpmdrake.spec b/rpmdrake.spec index 99b99f8c..259951a6 100644 --- a/rpmdrake.spec +++ b/rpmdrake.spec @@ -120,6 +120,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Thu Feb 19 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1.2-6mdk - edit-urpm-media: fix broken media reordering (program crashed) +- rpmdrake: hide password in logs (#6260) * Fri Feb 13 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.1.2-5mdk - make it embeddable |