Simplify file handling. There is no reason to use O_NONBLOCK on regular
authorclaudio <claudio@openbsd.org>
Thu, 6 May 2021 07:35:22 +0000 (07:35 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 6 May 2021 07:35:22 +0000 (07:35 +0000)
commita982ab778164426d95107a3e2fffb958decb6f9a
treef9f1d7c827edebf66242004cbd90fa1a1c791978
parentbb41c9699a2fea7a0ae8c1fed3a2c0af2067ec6f
Simplify file handling. There is no reason to use O_NONBLOCK on regular
files since they will never "block". Remove the UPLOAD_READ_LOCAL state
and inline the meta data check into pre_file().
Plug one memory leak and cleanup code a bunch.
OK benno@
usr.bin/rsync/uploader.c