diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-11 23:54:28 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-11 23:54:28 +0100 |
commit | 8b57e59ea93b7fc4f80c33bc1560b685f392ccc4 (patch) | |
tree | 7132a81a58217f9c87a031a2145433e86eba6653 /sys/man/4 | |
parent | 21570a47195d90b1dc2a3634d8042929543599d3 (diff) |
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.
Diffstat (limited to 'sys/man/4')
0 files changed, 0 insertions, 0 deletions