Simplify the logic in open_file().
authorJeremy Allison <jra@samba.org>
Mon, 9 Jul 2012 23:08:01 +0000 (16:08 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 9 Jul 2012 23:20:45 +0000 (16:20 -0700)
commit3a705e5f3d0843e3765852e26661aeee5ebdfd79
tree485c5ab17e8d7a5ffa771da35c0da98ecfef442b
parent1144b0dc043c42e4845316a4ccc3bdd49bfda822
Simplify the logic in open_file().

Move the fstat call into the block which opens a file descriptor.
Remove the stat() call in the stat-open case. We already failed
the open if !file_existed.
source3/smbd/open.c