]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/attr.c
Working directory pane in restore. Will get this into the stack next.
[bacula/bacula] / bacula / src / lib / attr.c
index 138dad8ad4b2b61288c5051f2bb3a53d610af472..0bfcb8ab54201e5ebc195578cff31d5ac89d7c53 100644 (file)
@@ -149,11 +149,7 @@ void build_attr_output_fnames(JCR *jcr, ATTR *attr)
     *
     */
 
-   if (jcr->where[0] == 0) {
-      pm_strcpy(attr->ofname, attr->fname);
-      pm_strcpy(attr->olname, attr->lname);
-
-   } else if (jcr->where_bregexp) { 
+   if (jcr->where_bregexp) { 
       char *ret;
       apply_bregexps(attr->fname, jcr->where_bregexp, &ret);
       pm_strcpy(attr->ofname, ret);
@@ -172,6 +168,10 @@ void build_attr_output_fnames(JCR *jcr, ATTR *attr)
          }
       }
       
+   } else if (jcr->where[0] == 0) {
+      pm_strcpy(attr->ofname, attr->fname);
+      pm_strcpy(attr->olname, attr->lname);
+
    } else {
       const char *fn;
       int wherelen = strlen(jcr->where);