summaryrefslogtreecommitdiffstats
path: root/daemon/file.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/file.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/file.c')
-rw-r--r--daemon/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/daemon/file.c b/daemon/file.c
index ed3221d5..212aff28 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -361,8 +361,6 @@ do_file (const char *path)
char *buf;
int len;
- REQUIRE_ROOT_OR_RESOLVE_DEVICE (path, return NULL);
-
if (strncmp (path, "/dev/", 5) == 0)
buf = (char *) path;
else {