summaryrefslogtreecommitdiff
path: root/sys/src/libregexp/regexec.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-02-20 12:49:03 -0800
committerOri Bernstein <ori@eigenstate.org>2021-02-20 12:49:03 -0800
commit245264e3716c46a5278f705c90d9cb24afca0924 (patch)
treec6811a38f1a8bfbeec8ff787b6226b797c8cef01 /sys/src/libregexp/regexec.c
parentdab168e6bd204c3cffae263d232051a47442c5ce (diff)
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.
Diffstat (limited to 'sys/src/libregexp/regexec.c')
0 files changed, 0 insertions, 0 deletions