]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bootstrap error notification
authorKern Sibbald <kern@sibbald.com>
Wed, 21 May 2003 15:33:21 +0000 (15:33 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 21 May 2003 15:33:21 +0000 (15:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@527 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/job.c

index a67bca6ef3e4dba3d28198433a6b0a7c61a5b07a..131fca92ffb89d49c0275116d008c67ef9c308ed 100644 (file)
@@ -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);