summaryrefslogtreecommitdiffstats
path: root/edit/virt-edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'edit/virt-edit.c')
-rw-r--r--edit/virt-edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit/virt-edit.c b/edit/virt-edit.c
index c0427451..3d23da86 100644
--- a/edit/virt-edit.c
+++ b/edit/virt-edit.c
@@ -298,7 +298,7 @@ main (int argc, char *argv[])
free (root);
/* Cleanly unmount the disks after editing. */
- if (guestfs_umount_all (g) == -1 || guestfs_sync (g) == -1)
+ if (guestfs_shutdown (g) == -1)
exit (EXIT_FAILURE);
guestfs_close (g);