Don't use fname after create_file has been called
commit14aa57a9e3368fed5b8b7d1ac0f6e94b9b1ac20e
authorVolker Lendecke <vl@samba.org>
Fri, 22 Feb 2008 15:17:10 +0000 (22 16:17 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 22 Feb 2008 16:15:09 +0000 (22 17:15 +0100)
tree7507c3d4204a983e6f61d25d75507e0b50b8d739
parent0f0998a06b3444fab45942563079c445f50ec955
Don't use fname after create_file has been called

create_file calls unix_convert internally, so modifies fname. So we can't use
"fname" after create_file has returned. Use fsp->fsp_name instead.

Found during a lengthy debugging session with Karolin testing the xattr_tdb
module...
(This used to be commit 183fe570469963923864b732817a87f8660341ed)
source3/smbd/nttrans.c
source3/smbd/reply.c
source3/smbd/trans2.c