rpms/shadow-utils/F-9 shadow-4.1.1-saltSize.patch, NONE, 1.1 shadow-utils.spec, 1.113, 1.114
Peter Vrabec (pvrabec)
fedora-extras-commits at redhat.com
Tue May 20 12:00:34 UTC 2008
Author: pvrabec
Update of /cvs/extras/rpms/shadow-utils/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8636
Modified Files:
shadow-utils.spec
Added Files:
shadow-4.1.1-saltSize.patch
Log Message:
fix salt size problem (#447136)
shadow-4.1.1-saltSize.patch:
--- NEW FILE shadow-4.1.1-saltSize.patch ---
diff -up shadow-4.1.1/libmisc/salt.c.saltSize shadow-4.1.1/libmisc/salt.c
--- shadow-4.1.1/libmisc/salt.c.saltSize 2008-05-20 13:36:06.000000000 +0200
+++ shadow-4.1.1/libmisc/salt.c 2008-05-20 13:39:30.000000000 +0200
@@ -90,9 +90,10 @@ static void seedRNG (void)
*/
static unsigned int SHA_salt_size (void)
{
- double rand_rounds = 9 * random ();
- rand_rounds /= RAND_MAX;
- return 8 + rand_rounds;
+ unsigned int rand_rounds;
+ seedRNG ();
+ rand_rounds = random () % 9;
+ return 8 + rand_rounds;
}
/* ! Arguments evaluated twice ! */
Index: shadow-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/shadow-utils/F-9/shadow-utils.spec,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -r1.113 -r1.114
--- shadow-utils.spec 5 Apr 2008 13:17:48 -0000 1.113
+++ shadow-utils.spec 20 May 2008 11:59:45 -0000 1.114
@@ -5,7 +5,7 @@
Summary: Utilities for managing accounts and shadow password files
Name: shadow-utils
Version: 4.1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 2
URL: http://pkg-shadow.alioth.debian.org/
Source0: ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-%{version}.tar.bz2
@@ -17,6 +17,7 @@
Patch3: shadow-4.1.0-goodname.patch
Patch4: shadow-4.1.1-selinux.patch
Patch5: shadow-4.1.1-sysAccountDownhill.patch
+Patch6: shadow-4.1.1-saltSize.patch
License: BSD
Group: System Environment/Base
@@ -46,6 +47,7 @@
%patch3 -p1 -b .goodname
%patch4 -p1 -b .selinux
%patch5 -p1 -b .sysAccountDownhill
+%patch6 -p1 -b .saltSize
rm po/*.gmo
@@ -186,6 +188,9 @@
%{_mandir}/man8/vigr.8*
%changelog
+* Tue May 20 2008 Peter Vrabec <pvrabec at redhat.com> 2:4.1.1-2
+- fix salt size problem (#447136)
+
* Mon Apr 07 2008 Peter Vrabec <pvrabec at redhat.com> 2:4.1.1-1
- upgrade
More information about the fedora-extras-commits
mailing list