X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Freopen.c;h=67a845cefdde322af807197364addfed80b84d0f;hb=76dfb74324fa0daa343d7edf89bd05e1fe7b4db0;hp=2dfc8db6f8d36f8929dd6729624b141bd94cc774;hpb=a96d70113ffcd01f55262c3d0fbe711bee759fec;p=libguestfs.git diff --git a/fish/reopen.c b/fish/reopen.c index 2dfc8db..67a845c 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,10 @@ do_reopen (const char *cmd, int argc, char *argv[]) if (p) guestfs_set_path (g2, p); + if (progress_bars) + guestfs_set_event_callback (g2, progress_callback, + GUESTFS_EVENT_PROGRESS, 0, NULL); + /* Close the original handle. */ guestfs_close (g); g = g2;