diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-17 14:25:55 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-17 15:22:29 +0100 |
commit | 5922d7084d6b43f0a1a15b664c7082dfeaf584d0 (patch) | |
tree | 465894bcdc5286627c25df62adcbd75a10125e96 /daemon/mount.c | |
parent | 68467cb1c2f8b1cc7844ed6512b7f76ef2aba1d1 (diff) | |
download | libguestfs-5922d7084d6b43f0a1a15b664c7082dfeaf584d0.tar.gz libguestfs-5922d7084d6b43f0a1a15b664c7082dfeaf584d0.tar.xz libguestfs-5922d7084d6b43f0a1a15b664c7082dfeaf584d0.zip |
Fix upload losing synchronization if root not mounted (RHBZ#576879).
Modify the generator so that it can correctly handle early
cancellation for Pathname|Device|.. parameters. This fixes
the upload command, but consequently we need to fix the
parameters for tar_in and t?z_in commands. This should also
mean that 'win:' can now be used as the second argument of
tar_in and t?z_in commands in guestfish, whereas previously
this wouldn't have worked.
Adds a regression test for the original problem.
Diffstat (limited to 'daemon/mount.c')
-rw-r--r-- | daemon/mount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/mount.c b/daemon/mount.c index 838bef86..8927c6c2 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -48,7 +48,7 @@ do_mount_vfs (const char *options, const char *vfstype, char *mp; char *error; - ABS_PATH (mountpoint, return -1); + ABS_PATH (mountpoint, , return -1); is_root = STREQ (mountpoint, "/"); @@ -121,7 +121,7 @@ do_umount (const char *pathordevice) } if (is_dev) - RESOLVE_DEVICE (buf, { free (buf); return -1; }); + RESOLVE_DEVICE (buf, , { free (buf); return -1; }); r = command (NULL, &err, "umount", buf, NULL); free (buf); @@ -356,7 +356,7 @@ do_mkmountpoint (const char *path) int r; /* NEED_ROOT (return -1); - we don't want this test for this call. */ - ABS_PATH (path, return -1); + ABS_PATH (path, , return -1); CHROOT_IN; r = mkdir (path, 0777); @@ -381,7 +381,7 @@ do_rmmountpoint (const char *path) int r; /* NEED_ROOT (return -1); - we don't want this test for this call. */ - ABS_PATH (path, return -1); + ABS_PATH (path, , return -1); CHROOT_IN; r = rmdir (path); |