X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fmount.c;h=8cf6874945fdbe9c9f1958c60c5b9d4ea806394e;hb=8601bbda56cdb2b8491b6e2054596ec9599c38f1;hp=6c30304e537669bba7df9a54b5c12803608967a9;hpb=1997858e90da728287ef26a6d01a5766ac914312;p=libguestfs.git diff --git a/daemon/mount.c b/daemon/mount.c index 6c30304..8cf6874 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -320,7 +320,7 @@ do_mount_loop (char *file, char *mountpoint) char *error; NEED_ROOT (-1); - ABS_PATH (file, -1); + ABS_PATH (file, return -1); /* We have to prefix /sysroot on both the filename and the mountpoint. */ mp = sysroot_path (mountpoint); @@ -358,7 +358,7 @@ do_mkmountpoint (char *path) int r; /* NEED_ROOT (-1); - we don't want this test for this call. */ - ABS_PATH (path, -1); + ABS_PATH (path, return -1); CHROOT_IN; r = mkdir (path, 0777); @@ -383,7 +383,7 @@ do_rmmountpoint (char *path) int r; NEED_ROOT (-1); - ABS_PATH (path, -1); + ABS_PATH (path, return -1); CHROOT_IN; r = rmdir (path);