# clean for distribution
distclean:
@for I in $(subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
- @for I in $(subdirs); do (cd $$I; $(RMF) startit stopit btraceback btraceback.gdb); done
+ @for I in $(subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
@(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
@(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
@(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
echo "${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
if test -f ${DESTDIR}${sysconfdir}/query.sql; then \
- @$(MV) -f ${DESTDIR}${sysconfdir}/query.sql ${DESTDIR}${sysconfdir}/query.sql.save; \
+ $(MV) -f ${DESTDIR}${sysconfdir}/query.sql ${DESTDIR}${sysconfdir}/query.sql.save; \
fi
${INSTALL_DATA} query.sql ${DESTDIR}${sysconfdir}/query.sql
{"workingdirectory", store_dir, ITEM(res_client.working_directory), 0, ITEM_REQUIRED, 0},
{"piddirectory", store_dir, ITEM(res_client.pid_directory), 0, ITEM_REQUIRED, 0},
{"subsysdirectory", store_dir, ITEM(res_client.subsys_directory), 0, ITEM_REQUIRED, 0},
- {"maximumconcurrentjobs", store_pint, ITEM(res_client.MaxConcurrentJobs), 0, ITEM_DEFAULT, 2},
+ {"maximumconcurrentjobs", store_pint, ITEM(res_client.MaxConcurrentJobs), 0, ITEM_DEFAULT, 3},
{"messages", store_res, ITEM(res_client.messages), R_MSGS, 0, 0},
{NULL, NULL, NULL, 0, 0, 0}
};
static char storaddr[] = "storage address=%s port=%d\n";
static char sessioncmd[] = "session %s %ld %ld %ld %ld %ld %ld\n";
static char restorecmd[] = "restore replace=%c where=%s\n";
+static char restorecmd1[] = "restore replace=%c where=\n";
static char verifycmd[] = "verify level=%20s\n";
/* Responses sent to Director */
*where = 0;
if (sscanf(dir->msg, restorecmd, &replace, where) != 2) {
- Jmsg(jcr, M_FATAL, 0, _("Bad replace command.\n"));
- return 0;
+ if (sscanf(dir->msg, restorecmd1, &replace) != 1) {
+ Jmsg(jcr, M_FATAL, 0, _("Bad replace command. CMD=%s\n"), dir->msg);
+ return 0;
+ }
+ *where = 0;
+ }
+ /* Turn / into nothing */
+ if (where[0] == '/' && where[1] == 0) {
+ where[0] = 0;
}
Dmsg2(150, "Got replace %c, where=%s\n", replace, where);
return 0;
case FT_SPEC:
if (S_ISFIFO(statp->st_mode)) {
- Dmsg1(0, "Restore fifo: %s\n", ofile);
+ Dmsg1(200, "Restore fifo: %s\n", ofile);
if (mkfifo(ofile, statp->st_mode) != 0) {
Jmsg2(jcr, M_ERROR, 0, _("Cannot make fifo %s: ERR=%s\n"), ofile, strerror(errno));
return 0;
}
} else {
- Dmsg1(0, "Restore node: %s\n", ofile);
+ Dmsg1(200, "Restore node: %s\n", ofile);
if (mknod(ofile, statp->st_mode, statp->st_rdev) != 0) {
Jmsg2(jcr, M_ERROR, 0, _("Cannot make node %s: ERR=%s\n"), ofile, strerror(errno));
return 0;
}
}
- Dmsg1(0, "FT_SPEC %s\n", ofile);
+ Dmsg1(200, "FT_SPEC %s\n", ofile);
return 0;
/* The following should not occur */
{"workingdirectory", store_dir, ITEM(res_store.working_directory), 0, ITEM_REQUIRED, 0},
{"piddirectory", store_dir, ITEM(res_store.pid_directory), 0, ITEM_REQUIRED, 0},
{"subsysdirectory", store_dir, ITEM(res_store.subsys_directory), 0, ITEM_REQUIRED, 0},
- {"maximumconcurrentjobs", store_pint, ITEM(res_store.max_concurrent_jobs), 0, ITEM_DEFAULT, 2},
+ {"maximumconcurrentjobs", store_pint, ITEM(res_store.max_concurrent_jobs), 0, ITEM_DEFAULT, 3},
{NULL, NULL, 0, 0, 0, 0}
};
/* */
#define VERSION "1.28"
#define VSTRING "1"
-#define DATE "17 December 2002"
-#define LSMDATE "17Dec02"
+#define DATE "18 December 2002"
+#define LSMDATE "18Dec02"
/* Debug flags */
#define DEBUG 1