use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / src / vcopy.c
index 4bfac3b..fd17623 100644 (file)
@@ -193,13 +193,13 @@ doit(Operation op,
     else if (op==opSKIP)    WRITE_MSG(1, "skipping '");
     else { assert(false); abort(); }
 
-    write(1, show_path->d, show_path->l);
+    Vwrite(1, show_path->d, show_path->l);
     WRITE_MSG(1, "'\n");
   }
 
   return (global_args->do_dry_run ||
          ( op==opSKIP) ||
-         ( op==opUNIFY && Unify_unify(src_path->d, exp_stat, dst_path->d)) ||
+         ( op==opUNIFY && Unify_unify(src_path->d, exp_stat, dst_path->d, false)) ||
          ((op==opCOPY  ||
            op==opDIR)  && Unify_copy (src_path->d, exp_stat, dst_path->d)));
 }
@@ -226,7 +226,7 @@ visitDirEntry(struct dirent const *ent)
     perror("lstat()");
   else {
     Operation          op       = checkDirEntry(&src_path, &f_stat);
-    PathInfo           dst_path = global_info.src_list.root;
+    PathInfo           dst_path = global_info.dst_list.root;
     char               dst_path_buf[ENSC_PI_APPSZ(dst_path, src_path)];
 
     PathInfo_append(&dst_path, &src_path, dst_path_buf);