From 85662da9e41035fcaf24309160d184a3596cc39a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 21 May 2003 15:33:21 +0000 Subject: [PATCH] Fix bootstrap error notification git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@527 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/job.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index a67bca6ef3..131fca92ff 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -375,6 +375,13 @@ static int bootstrap_cmd(JCR *jcr) jcr->RestoreBootstrap = fname; bs = fopen(fname, "a+"); /* create file */ if (!bs) { + /* + * Suck up what he is sending to us so that he will then + * read our error message. + */ + while (bnet_recv(dir) >= 0) + { } + Jmsg(jcr, M_FATAL, 0, _("Could not create bootstrap file %s: ERR=%s\n"), jcr->RestoreBootstrap, strerror(errno)); free_pool_memory(jcr->RestoreBootstrap); -- 2.39.5