Imported Upstream version 2.5.1p1
[debian/amanda] / server-src / find.c
index 5a9310f6bb1211f8958f289ab1f1d84987d19a43..1b7715097d3c25f78835423a6590f39c8396d7d1 100644 (file)
@@ -25,7 +25,7 @@
  *                        University of Maryland at College Park
  */
 /*
- * $Id: find.c,v 1.33 2006/07/06 13:13:15 martinea Exp $
+ * $Id: find.c,v 1.33.2.1 2006/09/19 19:34:27 martinea Exp $
  *
  * controlling process for the Amanda backup system
  */
@@ -782,7 +782,7 @@ search_logfile(
     filenum = (off_t)0;
     passlabel = 1;
     while(get_logline(logf) && passlabel) {
-       if((curlog == L_SUCCESS || curlog == L_CHUNK) &&
+       if((curlog == L_SUCCESS || curlog == L_CHUNK || curlog == L_PARTIAL) &&
                                curprog == P_TAPER && passlabel){
            filenum++;
        }
@@ -796,7 +796,7 @@ search_logfile(
            }
        }
        partnum = "--";
-       if(curlog == L_SUCCESS || curlog == L_FAIL || curlog == L_CHUNK) {
+       if(curlog == L_SUCCESS || curlog == L_PARTIAL || curlog == L_FAIL || curlog == L_CHUNK) {
            s = curstr;
            ch = *s++;
 
@@ -889,6 +889,8 @@ search_logfile(
                    new_output_find->filenum=filenum;
                    if(curlog == L_SUCCESS || curlog == L_CHUNK) 
                        new_output_find->status=stralloc("OK");
+                   else if(curlog == L_PARTIAL)
+                       new_output_find->status=stralloc("PARTIAL");
                    else
                        new_output_find->status=stralloc(rest);
                    *output_find=new_output_find;