plan9fox/sys
Ori Bernstein 245264e371 upas/marshal: handle nonexistent save folder correctly (thanks sirjofri)
When the save folder did not exist, and we could not create
it, we would handle up to one Biobuf worth of message, and
then fail, due to a failed tee. The sequence of events leading
up to this was:

	openfolder() -> error
	tee(0, fd, -1) -> wait for read
	write(0, data) ->
		write(fd, data) -> ok
		write(-1, data) -> error, tee terminates
	write(0, attachment) -> error

This change prevents us from writing to a closed fd, and
therefore from erroring out when sending.

We also warn the user.
2021-02-20 12:49:03 -08:00
..
doc
games/lib fortunes: That depends on how you define native. -- Andre Garzia 2021-02-09 23:11:08 -05:00
include ape/libm: implement log2 in libc 2021-01-30 09:19:57 -08:00
lib [9front] mimetype: add entry for .patch extension 2021-02-08 21:09:17 -08:00
man libstdio: sync bits of vfprintf from APE 2021-02-19 23:04:09 +01:00
src upas/marshal: handle nonexistent save folder correctly (thanks sirjofri) 2021-02-20 12:49:03 -08:00