mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
77a71bc993
The additional check if fd underlying fd is valid and not -1 should not be done at this place. I actually would prefer an write to fail with EBADF if this happens, as it's likely easier to debug why this happened. These days we should always have a valid fd. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13688 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 995a31c8d4c1789c16bae6b8196f2565d4b1dfdb)