summaryrefslogtreecommitdiffstats
path: root/daemon/fallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/fallocate.c')
-rw-r--r--daemon/fallocate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/daemon/fallocate.c b/daemon/fallocate.c
index 9c5a3dde..eb841457 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 (return -1);
- ABS_PATH (path, return -1);
-
CHROOT_IN;
fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666);
CHROOT_OUT;