summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iovctl
diff options
context:
space:
mode:
authoroshogbo <oshogbo@FreeBSD.org>2015-05-02 17:45:52 +0000
committeroshogbo <oshogbo@FreeBSD.org>2015-05-02 17:45:52 +0000
commitcf66982b37ec7230cc55175c994e05c6176e8e22 (patch)
treea69b34916c7078793947216a35639f78cd60366e /usr.sbin/iovctl
parent843dbc5981a1de860cdd7de6cf7aaf65c87a56ab (diff)
downloadFreeBSD-src-cf66982b37ec7230cc55175c994e05c6176e8e22.zip
FreeBSD-src-cf66982b37ec7230cc55175c994e05c6176e8e22.tar.gz
Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.
Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Approved by: pjd (mentor) Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. Reviewed by: AllanJude Approved by: pjd (mentor)
Diffstat (limited to 'usr.sbin/iovctl')
-rw-r--r--usr.sbin/iovctl/iovctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/iovctl/iovctl.c b/usr.sbin/iovctl/iovctl.c
index faa9586..dbf29d8 100644
--- a/usr.sbin/iovctl/iovctl.c
+++ b/usr.sbin/iovctl/iovctl.c
@@ -80,7 +80,7 @@ get_schema(int fd)
err(1, "Could not fetch config schema");
}
- schema = nvlist_unpack(arg.schema, arg.len);
+ schema = nvlist_unpack(arg.schema, arg.len, NV_FLAG_IGNORE_CASE);
if (schema == NULL)
err(1, "Could not unpack schema");
OpenPOWER on IntegriCloud