diff options
author | Cy Schubert <cy@FreeBSD.org> | 2013-03-05 16:10:39 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2013-03-05 16:10:39 +0000 |
commit | c886643ab637755054118511647b5fd1d0064a11 (patch) | |
tree | 37594dfc04bb63d29af1aa9b9790f17d5bc12804 /security/krb5 | |
parent | 984291a95a21225a52f894140ee3ea7cadfdef3e (diff) |
Notes
Diffstat (limited to 'security/krb5')
-rw-r--r-- | security/krb5/Makefile | 1 | ||||
-rw-r--r-- | security/krb5/files/patch-kadmin-dbutil-dump.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile index 8d7ecb5a845c..4b90aa8754fd 100644 --- a/security/krb5/Makefile +++ b/security/krb5/Makefile @@ -3,6 +3,7 @@ PORTNAME= krb5 PORTVERSION= 1.11.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/ DISTNAME= ${PORTNAME}-${PORTVERSION}-signed diff --git a/security/krb5/files/patch-kadmin-dbutil-dump.c b/security/krb5/files/patch-kadmin-dbutil-dump.c new file mode 100644 index 000000000000..8fc6623ab414 --- /dev/null +++ b/security/krb5/files/patch-kadmin-dbutil-dump.c @@ -0,0 +1,23 @@ +--- kadmin/dbutil/dump.c.orig 2013-02-21 15:23:19.000000000 -0800 ++++ kadmin/dbutil/dump.c 2013-03-05 08:01:25.046422435 -0800 +@@ -2973,6 +2973,20 @@ + */ + if (!(flags & FLAG_UPDATE)) { + if (exit_status) { ++ ++ /* Re-init ulog so we don't accidentally think we are current */ ++ if (log_ctx && log_ctx->iproprole) { ++ log_ctx->ulog->kdb_last_sno = 0; ++ log_ctx->ulog->kdb_last_time.seconds = 0; ++ log_ctx->ulog->kdb_last_time.useconds = 0; ++ ++ log_ctx->ulog->kdb_first_sno = 0; ++ log_ctx->ulog->kdb_first_time.seconds = 0; ++ log_ctx->ulog->kdb_first_time.useconds = 0; ++ ++ ulog_sync_header(log_ctx->ulog); ++ } ++ + kret = krb5_db_destroy(kcontext, db5util_db_args); + /* + * Ignore a not supported error since there is nothing to do about |