  extern const char *level_to_str(int level);
 Index: src/stored/spool.c
 ===================================================================
---- src/stored/spool.c	(révision 8258)
-+++ src/stored/spool.c	(copie de travail)
-@@ -622,13 +622,19 @@
+--- src/stored/spool.c	(revision 8270)
++++ src/stored/spool.c	(working copy)
+@@ -622,13 +622,40 @@
     V(mutex);
  }
  

+{
+   Mmsg(name, "%s/%s.attr.%s.%d.spool", working_directory, my_name,
+      jcr->Job, fd);
+}
+
 bool commit_attribute_spool(JCR *jcr)

+
+   spool_fd = fopen(file, "rb");
+   if (!spool_fd) {
+      Dmsg0(0, "cancel despool_attributes_from_file\n");
+      /* send an error message */
+      goto bail_out;
+   }
