don't give kdb5_util the -d option unless kpropd is given -F
authorKevin Mitchell <klmitch@mit.edu>
Fri, 27 Sep 1996 20:04:07 +0000 (20:04 +0000)
committerKevin Mitchell <klmitch@mit.edu>
Fri, 27 Sep 1996 20:04:07 +0000 (20:04 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9129 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/kpropd.c

index 1170b8301c06351894dbc46ee150c5cb48f3e998..f4aad57664279c9ac57a5098c77ad8b5b2c4fd72 100644 (file)
@@ -73,7 +73,7 @@ char  *realm = NULL;          /* Our realm */
 char   *file = KPROPD_DEFAULT_FILE;
 char   *temp_file_name;
 char   *kdb5_util = KPROPD_DEFAULT_KDB5_UTIL;
-char   *kerb_database = KPROPD_DEFAULT_KRB_DB;
+char   *kerb_database = NULL;
 char   *acl_file_name = KPROPD_ACL_FILE;
 
 int            database_fd;
@@ -835,8 +835,10 @@ load_database(context, kdb5_util, database_file_name)
                edit_av[count++] = realm;       
        }
        edit_av[count++] = "load";
-       edit_av[count++] = "-d";
-       edit_av[count++] = kerb_database;
+       if (kerb_database) {
+               edit_av[count++] = "-d";
+               edit_av[count++] = kerb_database;
+       }
        edit_av[count++] = database_file_name;
        edit_av[count++] = NULL;