Accepting request 74300 from system:install:head

- don't use Crypt::PasswdMD5 (bnc #701279, bnc #475370)

OBS-URL: https://build.opensuse.org/request/show/74300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslinux?expand=0&rev=34
This commit is contained in:
Sascha Peilicke 2011-06-22 10:38:29 +00:00 committed by Git OBS Bridge
parent 297519fb45
commit 0ea294216b
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--- a/utils/md5pass
+++ b/utils/md5pass
@@ -1,7 +1,6 @@
#!/usr/bin/perl
use bytes;
-use Crypt::PasswdMD5;
use MIME::Base64;
sub random_bytes($) {
@@ -31,4 +30,4 @@ unless (defined($salt)) {
$salt =~ tr/\+/./; # . not +
}
-print unix_md5_crypt($pass, $salt), "\n";
+print crypt($pass, "\$1\$$salt\$"), "\n";

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 21 16:36:27 CEST 2011 - snwint@suse.de
- don't use Crypt::PasswdMD5 (bnc #701279, bnc #475370)
-------------------------------------------------------------------
Thu Jun 9 11:32:40 CEST 2011 - snwint@suse.de

View File

@ -36,6 +36,7 @@ Patch1: %{name}-%{version}-cwd.diff
Patch2: %{name}-%{version}-noinitrd.diff
Patch3: %{name}-%{version}-mboot_bootif.diff
Patch4: %{name}-%{version}-isohybrid-hex-option-parsing.diff
Patch5: %{name}-%{version}-md5pass.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -57,6 +58,7 @@ Authors:
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
cp %{SOURCE2} .