X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffallocate.c;h=eb8414571f087676c4e3a398f43a5d0d87b36000;hb=0790c58e369d8fe77c8d1c6473dd757c63abebab;hp=47e84c6970b5162e51c1c82357ccf569b6331816;hpb=0e6e32025885286e2de39efca34ced2aaf26b3a3;p=libguestfs.git diff --git a/daemon/fallocate.c b/daemon/fallocate.c index 47e84c6..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, -1); - CHROOT_IN; fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666); CHROOT_OUT;