diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-19 12:41:35 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-19 12:41:35 +0100 |
commit | d73a4f097f96e7246718671b0a85cb94f0d3a88f (patch) | |
tree | 78c4a98fe90cb0c8cdff924a8fd5aa551ec5c94f /daemon/file.c | |
parent | 749708a7ec8930c34605ec58c18fefe0ed8e7981 (diff) | |
download | libguestfs-d73a4f097f96e7246718671b0a85cb94f0d3a88f.tar.gz libguestfs-d73a4f097f96e7246718671b0a85cb94f0d3a88f.tar.xz libguestfs-d73a4f097f96e7246718671b0a85cb94f0d3a88f.zip |
Implement NEED_ROOT_OR_IS_DEVICE macro.
Diffstat (limited to 'daemon/file.c')
-rw-r--r-- | daemon/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/file.c b/daemon/file.c index 16dfb009..24398339 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) |