smbd: Simplify smbXsrv_open_global_verify_record()
commit3c779de8cf99d0936956a12484fd726d5be46c7e
authorVolker Lendecke <vl@samba.org>
Fri, 6 Jan 2023 15:25:03 +0000 (6 16:25 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 24 Jan 2023 08:19:34 +0000 (24 08:19 +0000)
tree0784dde7b7915bf3fcbf84e19cd08ddd8a1be55a
parentf1a66267bcfcd48f3c7ca2ada3f62d40209163e3
smbd: Simplify smbXsrv_open_global_verify_record()

Don't depend on the record to be passed in, return NTSTATUS. The two
flags were a bit confusing to me, now NT_STATUS_OK means "found a
valid record with a live process", and NT_STATUS_FATAL_APP_EXIT means
we found a stale record from a crashed smbd

Signed-off-by: Volker Lendecke <vl@samba.org>
source3/smbd/smbXsrv_open.c