 + *  Returns: 0 on failure
 + *           1 on success with the File record in FILE_DBR
 + */
-+int db_accurate_get_file_attributes_record(JCR *jcr, B_DB *mdb, char *fname, JobId_t backupid, FILE_DBR *fdbr)
++int db_accurate_get_file_attributes_record(JCR *jcr, B_DB *mdb, char *fname, 
++					   JobId_t backupid, FILE_DBR *fdbr)
 +{
 +   int stat=0;
 +   char ed1[50];

 
 /* Commands sent to File daemon */
 static char backupcmd[] = "backup\n";
@@ -97,6 +98,411 @@
 }
 
 /*

+	    fdbr->JobId      = str_to_int64(row[7]);
+	    stat=1;
+	 }
+      } 
+      sql_free_result(mdb);
+   } else {
+      Mmsg(mdb->errmsg, _("File record: %s not found in Catalog for BackupId=%s.\n"), fname, ed1);
