mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
smbd: Simplify smbd_dirptr_lanman2_mode_fn()
Avoid an else, we return in the "true" branch Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Feb 11 21:53:22 UTC 2022 on sn-devel-184
This commit is contained in:
parent
c8eb75cca5
commit
18437fd6a7
@ -1709,8 +1709,10 @@ static bool smbd_dirptr_lanman2_mode_fn(TALLOC_CTX *ctx,
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else if (!VALID_STAT(smb_fname->st) &&
|
||||
SMB_VFS_STAT(state->conn, smb_fname) != 0) {
|
||||
}
|
||||
|
||||
if (!VALID_STAT(smb_fname->st) &&
|
||||
SMB_VFS_STAT(state->conn, smb_fname) != 0) {
|
||||
/* Needed to show the msdfs symlinks as
|
||||
* directories */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user