[27070] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Remove MAX_ULOGENTRIES

daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Oct 5 15:32:43 2012

Date: Fri, 5 Oct 2012 15:32:30 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201210051932.q95JWUj7014187@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/1d7c107c9e9239674b5c7aed32931ab47c50f239
commit 1d7c107c9e9239674b5c7aed32931ab47c50f239
Author: Nicolas Williams <nico@cryptonector.com>
Date:   Mon Sep 24 17:48:48 2012 -0500

    Remove MAX_ULOGENTRIES
    
    If a master KDC uses only a 64-bit libkadm5srv then there is no reason
    to impose any limit on ulog size: the practical maximum will be given by
    the filesystem and available storage space.
    
    Even when using a 32-bit libkadm5srv the maximum practical ulog size
    will be found easily enough when mmap() fails.
    
    ticket: 7368

 src/include/kdb_log.h    |    1 -
 src/lib/kadm5/alt_prof.c |    4 +---
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/include/kdb_log.h b/src/include/kdb_log.h
index beecdc1..c8d0288 100644
--- a/src/include/kdb_log.h
+++ b/src/include/kdb_log.h
@@ -53,7 +53,6 @@ extern "C" {
 /*
  * Default ulog file attributes
  */
-#define MAX_ULOGENTRIES 2500
 #define DEF_ULOGENTRIES 1000
 #define ULOG_IDLE_TIME  10              /* in seconds */
 /*
diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c
index 769f5f9..2a587e4 100644
--- a/src/lib/kadm5/alt_prof.c
+++ b/src/lib/kadm5/alt_prof.c
@@ -817,9 +817,7 @@ krb5_error_code kadm5_get_config_params(context, use_kdc_config,
     } else {
         if (aprofile && !krb5_aprof_get_int32(aprofile, hierarchy,
                                               TRUE, &ivalue)) {
-            if (ivalue > MAX_ULOGENTRIES)
-                params.iprop_ulogsize = MAX_ULOGENTRIES;
-            else if (ivalue <= 0)
+            if (ivalue <= 0)
                 params.iprop_ulogsize = DEF_ULOGENTRIES;
             else
                 params.iprop_ulogsize = ivalue;
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post