From 8aa6acdae4063c1ddc6e16c999c97814a95b09a3 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 20 Jul 1994 03:58:56 +0000 Subject: [PATCH] * kdb5_create.c: start kvno and mkno at 1, not 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4002 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/create/ChangeLog | 4 ++++ src/admin/create/Makefile.in | 4 ++-- src/admin/create/kdb5_create.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/admin/create/ChangeLog b/src/admin/create/ChangeLog index 5a76f9635..ae0a51bf9 100644 --- a/src/admin/create/ChangeLog +++ b/src/admin/create/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 19 18:56:59 1994 Tom Yu (tlyu at dragons-lair) + + * kdb5_create.c: start kvno and mkno at 1, not 0. + Wed Jun 29 00:19:17 1994 Tom Yu (tlyu at dragons-lair) * kdb5_create.c: fixed up something that should have been a call diff --git a/src/admin/create/Makefile.in b/src/admin/create/Makefile.in index 635f22d09..60b2d76ed 100644 --- a/src/admin/create/Makefile.in +++ b/src/admin/create/Makefile.in @@ -20,8 +20,8 @@ kdb5_create: kdb5_create.o $(DEPLIBS) $(CC) $(CFLAGS) -o kdb5_create kdb5_create.o $(LOCAL_LIBRARIES) $(LIBS) install:: - cp kdb5_create $(DESTDIR)$(ADMIN_BINDIR)/kdb5_create - cp kdb5_create.M $(DESTDIR)$(ADMIN_MANDIR)/kdb5_create.8 + $(INSTALL_PROGRAM) kdb5_create $(DESTDIR)$(ADMIN_BINDIR)/kdb5_create + $(INSTALL_DATA) kdb5_create.M $(DESTDIR)$(ADMIN_MANDIR)/kdb5_create.8 clean:: $(RM) kdb5_create kdb5_create.o diff --git a/src/admin/create/kdb5_create.c b/src/admin/create/kdb5_create.c index 2fc736e69..3b788e924 100644 --- a/src/admin/create/kdb5_create.c +++ b/src/admin/create/kdb5_create.c @@ -296,10 +296,10 @@ struct realm_info *pblock; memset((char *) &entry, 0, sizeof(entry)); entry.principal = princ; - entry.kvno = 0; + entry.kvno = 1; entry.max_life = pblock->max_life; entry.max_renewable_life = pblock->max_rlife; - entry.mkvno = 0; + entry.mkvno = 1; entry.expiration = pblock->expiration; entry.mod_name = &db_create_princ; -- 2.26.2