git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inotify-add-watch does not need to explicitly check for ABS_PATH.
[libguestfs.git]
/
daemon
/
fallocate.c
diff --git
a/daemon/fallocate.c
b/daemon/fallocate.c
index
47e84c6
..
eb84145
100644
(file)
--- a/
daemon/fallocate.c
+++ b/
daemon/fallocate.c
@@
-28,13
+28,10
@@
#include "actions.h"
int
#include "actions.h"
int
-do_fallocate (char *path, int len)
+do_fallocate (c
onst c
har *path, int len)
{
int fd, r;
{
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;
CHROOT_IN;
fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666);
CHROOT_OUT;