s3-vfs_gpfs: Fix bug #9003, posix acl on gpfs
commita30bd6faecd0cca56f1c8475c8dc7a2d853a210a
authorVolker Lendecke <vl@samba.org>
Fri, 22 Jun 2012 13:46:13 +0000 (22 15:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 19:32:53 +0000 (24 21:32 +0200)
tree031dd1a9fa0b297d9e8e795252e9ff3791bb7a2a
parentf07890af7039f4196ac26aaad7017658f43bac98
s3-vfs_gpfs: Fix bug #9003, posix acl on gpfs

gpfs2smb_acl can leave errno!=0 around even if it returned a correct
result!=NULL. We can only rely on errno being set if another error
condition (in this case result==NULL) indicates an error. If
result!=NULL, errno is undefined and can be anything. This leads to
SAFE_FREE(result) further down even in the success case.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 19:27:39 CEST 2012 on sn-devel-104
(cherry picked from commit e7b58146d8576ae8bf4eaf2ec1063fe7697e05b8)
(cherry picked from commit bea2d3d007cef5643e863d2d4a80f0ea72461ec3)
source3/modules/vfs_gpfs.c