s3:smbd:durable: factor stat checks out into vfs_default_durable_reconnect_check_stat()
commite733084e4355218d427fcc364cbca52168e7bd1d
authorMichael Adam <obnox@samba.org>
Tue, 23 Oct 2012 11:00:02 +0000 (23 13:00 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2012 12:02:19 +0000 (29 13:02 +0100)
treed4fc12d2593af5e479e043232b68924ddf3f0f0e
parent5593fc7213328001654f48c0781f965e6f32c9fc
s3:smbd:durable: factor stat checks out into vfs_default_durable_reconnect_check_stat()

This makes vfs_default_durable_reconnect() simpler to read
and it reduces code duplication in the failure case handling.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 25 23:03:13 CEST 2012 on sn-devel-104
(cherry picked from commit 52ace6767fddb389e3393c4b19685e59782c6a90)

The last 4 patches address bug #9319 - validate stat(2) information before
reconnect durable handles.
source3/smbd/durable.c