Module Name: src
Committed By: thorpej
Date: Mon Jun 8 20:14:24 UTC 2020
Modified Files:
src/sys/kern: kern_veriexec.c
Log Message:
Update for proplib(3) API changes.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/kern/kern_veriexec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_veriexec.c
diff -u src/sys/kern/kern_veriexec.c:1.23 src/sys/kern/kern_veriexec.c:1.24
--- src/sys/kern/kern_veriexec.c:1.23 Fri Feb 21 00:26:22 2020
+++ src/sys/kern/kern_veriexec.c Mon Jun 8 20:14:24 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_veriexec.c,v 1.23 2020/02/21 00:26:22 joerg Exp $ */
+/* $NetBSD: kern_veriexec.c,v 1.24 2020/06/08 20:14:24 thorpej Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <[email protected]>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.23 2020/02/21 00:26:22 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.24 2020/06/08 20:14:24 thorpej Exp $");
#include "opt_veriexec.h"
@@ -1213,11 +1213,11 @@ veriexec_file_convert(struct veriexec_fi
{
if (vfe->filename)
prop_dictionary_set(rdict, "file",
- prop_string_create_cstring(vfe->filename));
+ prop_string_create_copy(vfe->filename));
prop_dictionary_set_uint8(rdict, "entry-type", vfe->type);
prop_dictionary_set_uint8(rdict, "status", vfe->status);
prop_dictionary_set(rdict, "fp-type",
- prop_string_create_cstring(vfe->ops->type));
+ prop_string_create_copy(vfe->ops->type));
prop_dictionary_set(rdict, "fp",
prop_data_create_data(vfe->fp, vfe->ops->hash_len));
}