fish: In 'reopen' copy trace setting to new handle.
authorRichard Jones <rjones@redhat.com>
Sat, 8 May 2010 08:14:00 +0000 (09:14 +0100)
committerRichard Jones <rjones@redhat.com>
Sat, 8 May 2010 08:14:00 +0000 (09:14 +0100)
fish/reopen.c

index f2d35c7..2dfc8db 100644 (file)
@@ -54,6 +54,10 @@ do_reopen (const char *cmd, int argc, char *argv[])
   if (r >= 0)
     guestfs_set_verbose (g2, r);
 
+  r = guestfs_get_trace (g);
+  if (r >= 0)
+    guestfs_set_trace (g2, r);
+
   r = guestfs_get_autosync (g);
   if (r >= 0)
     guestfs_set_autosync (g2, r);