summaryrefslogtreecommitdiff
path: root/sys/src/libc/9sys/putenv.c
AgeCommit message (Collapse)Author
2020-12-07libc: open internal file-descriptor with OCEXEC flagcinap_lenrek
2015-02-11libc: check name in getvent()/putenv()cinap_lenrek
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.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen