]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a dynamic buffer for the copy of a node's new value.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 30 Oct 2020 21:13:05 +0000 (21:13 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 30 Oct 2020 21:13:05 +0000 (21:13 +0000)
commitb64b636d4607624f18153f424e73b10d3f43d724
tree2b231de536c47fc9e199d5aa18709c75db171824
parentb7d92a6683a13ea794b6eb41f046feca56db888e
Use a dynamic buffer for the copy of a node's new value.

This permits setting a node's value to a string longer than BUFSIZ.

Reported by: Sony Arpita Das @ Chelsio
Reviewed by: freqlabs
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27027
sbin/sysctl/sysctl.c