ref: 8b57e59ea93b7fc4f80c33bc1560b685f392ccc4
parent: 21570a47195d90b1dc2a3634d8042929543599d3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Feb 11 18:54:28 EST 2015
libc: check name in getvent()/putenv() passing "", "." or ".." as name caused a crash in getenv() as it would open the directory; then seek() to determine the file size would fail and return -1. now checking for these special names and set error string when its bad. doing a single read() will not work when /env has a 9p fileserver mounted onto it and the file size is bigger than the i/o unit. so doing incremental reads until we get eof.