customizations simpler.
* dump.c (restore_dump): If header indicates a beta-5 dump, process it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7886
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu May 2 22:16:01 1996 Ken Raeburn <raeburn@cygnus.com>
+
+ * ss_wrapper.c (main): Make sci_idx a global. This makes certain
+ Cygnus customizations simpler.
+
+ * dump.c (restore_dump): If header indicates a beta-5 dump,
+ process it.
+
Thu Apr 11 19:32:36 1996 Richard Basch <basch@lehman.com>
* kdb5_edit.c (extract_v4_srvtab): Use the matching key_data's kvno;
if (f != stdin)
fclose(f);
}
+ else if (!strcmp (buf, k5beta_dump_header)) {
+ lineno = 1;
+ /*
+ * Process the records.
+ */
+ while (!(error = process_k5beta_record(dumpfile,
+ kcontext,
+ f,
+ verbose,
+ &lineno)))
+ ;
+ if (error != -1)
+ fprintf(stderr, err_line_fmt, programname, lineno, dumpfile);
+ else
+ error = 0;
+
+ /*
+ * Close the input file.
+ */
+ if (f != stdin)
+ fclose(f);
+ }
else {
fprintf(stderr, head_bad_fmt, programname, dumpfile);
error++;
extern int exit_status;
extern FILE *scriptfile;
+int sci_idx;
+
int main(argc, argv)
int argc;
char *argv[];
{
char *request;
krb5_error_code retval;
- int sci_idx, code = 0;
+ int code = 0;
request = kdb5_edit_Init(argc, argv);
sci_idx = ss_create_invocation("kdb5_edit", "5.0", (char *) NULL,