summaryrefslogtreecommitdiffstats
path: root/share/skel
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-04-28 00:49:24 +0000
committerdelphij <delphij@FreeBSD.org>2010-04-28 00:49:24 +0000
commit248d9cd26d04261a18656cb19e504268ca0d3fe2 (patch)
tree1c853c2e2faae75f42182f464b78198b5170f25a /share/skel
parentf74ef765d28859212ddb2f16729ec4e240bc95c2 (diff)
downloadFreeBSD-src-248d9cd26d04261a18656cb19e504268ca0d3fe2.zip
FreeBSD-src-248d9cd26d04261a18656cb19e504268ca0d3fe2.tar.gz
MFC r206637:
When an underlying ioctl(2) handler returns an error, our ioctl(2) interface considers that it hits a fatal error, and will not copyout the request structure back for _IOW and _IOWR ioctls, keeping them untouched. The previous implementation of the SIOCGIFDESCR ioctl intends to feed the buffer length back to userland. However, if we return an error, the feedback would be defeated and ifconfig(8) would trap into an infinite loop. This commit changes SIOCGIFDESCR to set buffer field to NULL to indicate the previous ENAMETOOLONG case. Reported by: bschmidt
Diffstat (limited to 'share/skel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud