X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffallocate.c;h=eb8414571f087676c4e3a398f43a5d0d87b36000;hb=40a0f2595515b5624ddd93cf26c4ed6383ac530e;hp=f61c496ec2858487a4ae32126e1bd868f80abd0f;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;p=libguestfs.git diff --git a/daemon/fallocate.c b/daemon/fallocate.c index f61c496..eb84145 100644 --- a/daemon/fallocate.c +++ b/daemon/fallocate.c @@ -28,13 +28,10 @@ #include "actions.h" int -do_fallocate (char *path, int len) +do_fallocate (const char *path, int len) { int fd, r; - NEED_ROOT (-1); - ABS_PATH (path, return -1); - CHROOT_IN; fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666); CHROOT_OUT;