X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffile.c;h=2ba2aab79b0aba97e2f56e31b22c6f763cda57f0;hb=fc266e5ab8c4f013d0e473029c5e0b4cd32cca92;hp=9cc324fbd4c418932e7cd7784fc0f9f8785a0e42;hpb=ecd828beb250648541492a69a188a71305897e4e;p=libguestfs.git diff --git a/daemon/file.c b/daemon/file.c index 9cc324f..2ba2aab 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -391,7 +391,7 @@ do_file (char *path) char *buf; int len; - NEED_ROOT_OR_IS_DEVICE (path, return NULL); + REQUIRE_ROOT_OR_RESOLVE_DEVICE (path, return NULL); if (strncmp (path, "/dev/", 5) == 0) buf = (char *) path;