X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ffallocate.c;fp=daemon%2Ffallocate.c;h=f61c496ec2858487a4ae32126e1bd868f80abd0f;hp=47e84c6970b5162e51c1c82357ccf569b6331816;hb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;hpb=4a5e13f15734aa7363e605f716ad6e29c67475c5 diff --git a/daemon/fallocate.c b/daemon/fallocate.c index 47e84c6..f61c496 100644 --- a/daemon/fallocate.c +++ b/daemon/fallocate.c @@ -33,7 +33,7 @@ do_fallocate (char *path, int len) int fd, r; NEED_ROOT (-1); - ABS_PATH (path, -1); + ABS_PATH (path, return -1); CHROOT_IN; fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666);