        skip_nonspaces(&p);             /* skip FileIndex */
        skip_spaces(&p);
        filetype = str_to_int32(p);     /* TODO: choose between unserialize and str_to_int32 */
-@@ -510,8 +490,103 @@
+@@ -510,8 +490,104 @@
           }
        }
     }

 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 @@
    V(mutex);
 }
 

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