[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] diff/diff.c: diff output to show correct file handles and presence symbol



---
 diff/diff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diff/diff.c b/diff/diff.c
index 8b0fda0..6a374af 100644
--- a/diff/diff.c
+++ b/diff/diff.c
@@ -608,7 +608,7 @@ static void
 deleted (guestfs_h *g, struct file *file)
 {
   output_start_line ();
-  output_string ("+");
+  output_string ("-");
   output_file (g, file);
   output_end_line ();
 }
@@ -669,7 +669,7 @@ changed (guestfs_h *g1, struct file *file1,
     output_end_line ();
     output_start_line ();
     output_string ("+");
-    output_file (g1, file1);
+    output_file (g2, file2);
     output_end_line ();
 
     /* Display stats fields that changed. */
-- 
1.9.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]