X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Freopen.c;h=b07698263ccb6a355f434c4eb3567c456257e387;hp=2dfc8db6f8d36f8929dd6729624b141bd94cc774;hb=0353688577a27749f40bcc060e5703102c5a9649;hpb=a96d70113ffcd01f55262c3d0fbe711bee759fec diff --git a/fish/reopen.c b/fish/reopen.c index 2dfc8db..b076982 100644 --- a/fish/reopen.c +++ b/fish/reopen.c @@ -26,7 +26,7 @@ #include "fish.h" int -do_reopen (const char *cmd, int argc, char *argv[]) +run_reopen (const char *cmd, size_t argc, char *argv[]) { guestfs_h *g2; int r; @@ -66,6 +66,9 @@ do_reopen (const char *cmd, int argc, char *argv[]) if (p) guestfs_set_path (g2, p); + if (progress_bars) + guestfs_set_progress_callback (g2, progress_callback, NULL); + /* Close the original handle. */ guestfs_close (g); g = g2;