]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a dynamic buffer for the copy of a node's new value.
authorjhb <jhb@FreeBSD.org>
Fri, 30 Oct 2020 21:13:05 +0000 (21:13 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 30 Oct 2020 21:13:05 +0000 (21:13 +0000)
commitecd2c8184c5489f1c429adbf03a57a23828c6d60
tree2b231de536c47fc9e199d5aa18709c75db171824
parent386f13cded1c3ef642b2efd9c7dc5d84c0201fd8
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