s3: VFS: Protect errno if sys_getwd() fails across free() call.
authorJeremy Allison <jra@samba.org>
Tue, 3 Oct 2017 17:58:00 +0000 (10:58 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:04 +0000 (08:43 +0200)
commit7d36ecb7e4793935daa01ac169a5ba749d73729e
treee4f365c06a0eced5b00d768fd2699d1534a36d74
parent6b1971fe39cc91ae450d28238fe3f81758d0e6fd
s3: VFS: Protect errno if sys_getwd() fails across free() call.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13069

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 4800ed3595513ce1e2f4edee36c35daafc63a3d5)
source3/lib/system.c