X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ffile.c;h=24398339b408f343cb0dec971921ef8be009ffab;hp=16dfb009873be63306609f783a53f293b5c46ee2;hb=170f262f0413de843af62b968f6d12c1c476ae7f;hpb=05712b2457a44ee0f0020eced77db03c2aa419a1 diff --git a/daemon/file.c b/daemon/file.c index 16dfb00..2439833 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -323,7 +323,7 @@ do_file (const char *path) int r, len, freeit = 0; char *buf; - /*NEED_ROOT (NULL); - no: we allow people to run this on /dev devices. */ + NEED_ROOT_OR_IS_DEVICE (path, NULL); ABS_PATH (path, NULL); if (strncmp (path, "/dev/", 5) == 0)