check_parent_exists() can change errno. Ensure we preserve it across calls.
commiteb55971697731c3d6c84b2f76867a8c0d02a69fa
authorAnand Avati <avati@redhat.com>
Mon, 29 Apr 2013 22:21:00 +0000 (29 15:21 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Jun 2013 07:20:08 +0000 (17 09:20 +0200)
treef7dd7dbd2863f3a80071ed4f324cf9f17eae958e
parent5dcdd108fca9abb6bb115052bb7d2feaf7e3fc2c
check_parent_exists() can change errno. Ensure we preserve it across calls.

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Apr 30 11:00:11 CEST 2013 on sn-devel-104

Fix bug #9927 - errno gets overwritten in call to check_parent_exists().
(cherry picked from commit b5243a52a237b524b7afb8125c4b75378af622d1)
source3/smbd/filename.c