erroutput_type = ERR_INTERACTIVE;
- parse_server_conf(argc, argv, &new_argc, &new_argv);
+ parse_conf(argc, argv, &new_argc, &new_argv);
if(new_argc > 1 && strcmp(new_argv[1],"-f") == 0)
force=1;
new_argv[0], conffile);
usage();
}
- tapename = stralloc(getconf_str(CNF_TAPEDEV));
+ tapename = getconf_str(CNF_TAPEDEV);
+ if (tapename == NULL) {
+ error("No tapedev specified");
+ } else {
+ tapename = stralloc(tapename);
+ }
#ifdef HAVE_LIBVTBLC
rawtapedev = stralloc(getconf_str(CNF_RAWTAPEDEV));
#endif /* HAVE_LIBVTBLC */
error("couldn't write tapelist: %s", strerror(errno));
/*NOTREACHED*/
}
+
+ if (have_changer) {
+ changer_label(outslot, label);
+ }
} /* write tape list */
printf(", done.\n");
} else {