s3/smbd: use stat from smb_fname if valid in refuse_symlink()
authorRalph Boehme <slow@samba.org>
Sat, 10 Sep 2016 12:43:07 +0000 (14:43 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 11 Sep 2016 21:52:16 +0000 (23:52 +0200)
commit76360caad20dae0389e3e78d58d5866e5657a6cd
treef9e7b1135e9ca1ffd9d564d22a9c0cb2ecd8dac4
parentb13b3c11054f918f18841186a6efc5dedd2ffd66
s3/smbd: use stat from smb_fname if valid in refuse_symlink()

Now that refuse_symlink() gets passed in a smb_fname and not just a char
buffer, we can try to reuse its stat info and save one stat call here.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sun Sep 11 23:52:17 CEST 2016 on sn-devel-144
source3/smbd/trans2.c