* kdb5_create.c: start kvno and mkno at 1, not 0
authorTom Yu <tlyu@mit.edu>
Wed, 20 Jul 1994 03:58:56 +0000 (03:58 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 20 Jul 1994 03:58:56 +0000 (03:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4002 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/create/ChangeLog
src/admin/create/Makefile.in
src/admin/create/kdb5_create.c

index 5a76f96352b7b5ccc6a49117e8b9d270d22f89c0..ae0a51bf9012df3ddd300b724ef58da8be7bffc2 100644 (file)
@@ -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
index 635f22d09f2b17aa4356a7b8670805563714f08e..60b2d76ed2531743955da08d477395732b34c52d 100644 (file)
@@ -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
index 2fc736e69946d59fd6c1e75468f2f973c0641823..3b788e924ad00b821765e844f596f749f5103c37 100644 (file)
@@ -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;