summaryrefslogtreecommitdiffstats
path: root/daemon/upload.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-11 18:07:17 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commit08c27722647d14a30648dd02e221e1e803d1189e (patch)
tree4c2eebdbd6a2c55954640a675754c47ddf4e2e04 /daemon/upload.c
parent1020246b278aade9671d12dae2554cf7538cf0de (diff)
downloadlibguestfs-08c27722647d14a30648dd02e221e1e803d1189e.tar.gz
libguestfs-08c27722647d14a30648dd02e221e1e803d1189e.tar.xz
libguestfs-08c27722647d14a30648dd02e221e1e803d1189e.zip
generator.ml: finish adding Dev_or_Path support
* src/generator.ml: Update all rules to handle Dev_or_Path. (the above changes to generator.ml are mostly mechanical) Emit a use of REQUIRE_ROOT_OR_RESOLVE_DEVICE. * daemon/upload.c (do_download): Remove use of REQUIRE_ROOT_OR_RESOLVE_DEVICE, now that it's automatically done in calling code. * daemon/file.c (do_file): Likewise.
Diffstat (limited to 'daemon/upload.c')
-rw-r--r--daemon/upload.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/daemon/upload.c b/daemon/upload.c
index aede24a5..143fa823 100644
--- a/daemon/upload.c
+++ b/daemon/upload.c
@@ -93,8 +93,6 @@ do_download (const char *filename)
int fd, r, is_dev;
char buf[GUESTFS_MAX_CHUNK_SIZE];
- REQUIRE_ROOT_OR_RESOLVE_DEVICE (filename, return -1);
-
is_dev = strncmp (filename, "/dev/", 5) == 0;
if (!is_dev) CHROOT_IN;