s3:vfs_preopen: Change to a do-while loop and fix the check
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 17:44:59 +0000 (18:44 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +0000 (23:16 +0100)
commit0f7a86c46ff90b907615d8f096f86c383ccf3e8e
treed283e1079b161e5f3d7395da596e30573b3eed3c
parent9f6de82ef25c5d7969c3986d508a138c3c4f5a64
s3:vfs_preopen: Change to a do-while loop and fix the check

This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_preopen.c