[MC BUG, PATCH] moved files are accounted twice
- To: Pavel Roskin <proski gnu org>
- Subject: [MC BUG, PATCH] moved files are accounted twice
- Date: Wed, 9 Jul 2003 07:51:30 +0200
	Hi!
  When moving >1 files every file is accounted twice in "count" progress bar.
Each file is copied with copy_file_file() (which does accounting) and
then removed.
Following patch fixes this (don't know if this has any side effects). 
Consider applying. Patch is against current CVS.
	Cheers,
		Vita Samel
diff -urN mc/src/file.c mc.new/src/file.c
--- mc/src/file.c	Mon Jun  2 20:13:43 2003
+++ mc.new/src/file.c	Wed Jul  9 07:46:27 2003
@@ -1217,12 +1217,6 @@
 	return return_status;
     }
 
-    if (return_status == FILE_CONT)
-	return_status = progress_update_one (ctx,
-					     progress_count,
-					     progress_bytes,
-					     src_stats.st_size, 1);
-
     return return_status;
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]