git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/generator.ml: Change all `String "device"' to `Device "device"'.
[libguestfs.git]
/
daemon
/
upload.c
diff --git
a/daemon/upload.c
b/daemon/upload.c
index
7815e23
..
5c1adaf
100644
(file)
--- a/
daemon/upload.c
+++ b/
daemon/upload.c
@@
-93,7
+93,7
@@
do_download (char *filename)
int fd, r, is_dev;
char buf[GUESTFS_MAX_CHUNK_SIZE];
-
NEED_ROOT_OR_IS
_DEVICE (filename, return -1);
+
REQUIRE_ROOT_OR_RESOLVE
_DEVICE (filename, return -1);
is_dev = strncmp (filename, "/dev/", 5) == 0;