#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;
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;