diff options
author | Michael Forney <mforney@mforney.org> | 2022-10-29 23:06:58 +0000 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-10-29 23:06:58 +0000 |
commit | 82435c350a1d3530c87ea88ada68e984fc6b9b80 (patch) | |
tree | 7e56744cac60dd6fadb5b26e24a63aaed44f5966 /sys/src/cmd/patch.c | |
parent | 7d108832528eb1ee85a445a562c00b5a8344d882 (diff) |
upas/fs: clear errstr after chkunix
The readmessage loop clears errstr at start and expects it not to
change unless there is a read error. However, strtotm may use
multiple calls to tmparse while trying to determine the date format,
which may leave errstr non-empty on success. Clear it after chkunix
so that this doesn't get treated as a message read error.
This also fixes handling of naked From lines, which were previously
just warned about, but since the conversion to tmparse they
accidentally triggered a message read failure.
Diffstat (limited to 'sys/src/cmd/patch.c')
0 files changed, 0 insertions, 0 deletions