]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: stdin fstat failure is a failure
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 3 Jun 2022 02:56:10 +0000 (14:56 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2022 01:28:30 +0000 (01:28 +0000)
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>
source3/smbd/server.c

index abb54d3ced8afe063378bf6308948e390f925554..7e2a10532f6df426401fa8a76ebd09b79bdf6da8 100644 (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,