summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-05-08 09:14:00 +0100
committerRichard Jones <rjones@redhat.com>2010-05-08 09:14:00 +0100
commita96d70113ffcd01f55262c3d0fbe711bee759fec (patch)
treed3ce4cd7000d7bdf9b70420cdaa396572c7f8e93 /fish
parent2064e43bcfc7fc5bde08a0442c646a0a46997875 (diff)
downloadlibguestfs-a96d70113ffcd01f55262c3d0fbe711bee759fec.tar.gz
libguestfs-a96d70113ffcd01f55262c3d0fbe711bee759fec.tar.xz
libguestfs-a96d70113ffcd01f55262c3d0fbe711bee759fec.zip
fish: In 'reopen' copy trace setting to new handle.
Diffstat (limited to 'fish')
-rw-r--r--fish/reopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fish/reopen.c b/fish/reopen.c
index f2d35c7f..2dfc8db6 100644
--- a/fish/reopen.c
+++ b/fish/reopen.c
@@ -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);