diff options
Diffstat (limited to 'lib/libbe/be_access.c')
-rw-r--r-- | lib/libbe/be_access.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libbe/be_access.c b/lib/libbe/be_access.c index 74059a0a5693..67b30d3fb4fb 100644 --- a/lib/libbe/be_access.c +++ b/lib/libbe/be_access.c @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in> * Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org> @@ -28,8 +28,6 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/mntent.h> #include "be.h" @@ -210,7 +208,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details) if (info.name != NULL) { if (details != NULL) { - if ((root_hdl = zfs_open(lbh->lzh, lbh->root, + if ((root_hdl = zfs_open(lbh->lzh, info.name, ZFS_TYPE_FILESYSTEM)) == NULL) { free(info.name); return (BE_ERR_ZFSOPEN); @@ -219,6 +217,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details) propinfo.lbh = lbh; propinfo.list = details; propinfo.single_object = false; + propinfo.bootonce = NULL; prop_list_builder_cb(root_hdl, &propinfo); zfs_close(root_hdl); } |