1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s3/smbd: stdin fstat failure is a failure

It seems we forgot we were in main.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-06-03 14:56:10 +12:00 committed by Andrew Bartlett
parent 25ad724c01
commit 66cabb8fd1

View File

@ -2110,7 +2110,7 @@ extern void build_options(bool screen);
*/
struct stat st;
if (fstat(0, &st) != 0) {
return false;
return 1;
}
if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode)) {
tevent_add_fd(ev_ctx,