plan9fox/sys/src/libc
cinap_lenrek 8b57e59ea9 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.
2015-02-11 23:54:28 +01:00
..
9sys libc: check name in getvent()/putenv() 2015-02-11 23:54:28 +01:00
9syscall add _nsec() syscall 53 for binary compatibility with labs distribution 2014-05-20 05:06:31 +02:00
386 prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
68000 prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
68020 prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
alpha prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
amd64 prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
arm getfcr: change getfcr/setfcr to use VFP 2014-12-25 17:44:49 +01:00
fmt libc: set malloctag for runesmprint() 2013-09-06 16:55:13 +02:00
mips prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
port pool: more strict checktree() for poolcheck 2015-01-05 14:23:01 +01:00
power prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
sparc prof: properly save and restore RARG for amd64 2014-02-17 13:25:24 +01:00
mkfile reverting semaphore lock changes from sources (r41ccd6d221da, rb28756e5ba29) 2013-09-26 22:24:31 +02:00