[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-cvs
Subject:    [SCM] Samba Shared Repository - branch v3-5-test updated
From:       kseeger () samba ! org (Karolin Seeger)
Date:       2012-06-30 11:17:28
Message-ID: 20120630111728.907001406E9 () sn ! samba ! org
[Download RAW message or body]

The branch, v3-5-test has been updated
       via  6fa785d s3-vfs_gpfs: Fix bug #9003, posix acl on gpfs
      from  92b1d6b Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 6fa785d9b2379138bff759266a1545bf0240f092
Author: Volker Lendecke <vl@samba.org>
Date:   Fri Jun 22 15:46:13 2012 +0200

    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)

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_gpfs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index ca29f64..ecfa60a 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -586,8 +586,8 @@ static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type)
 		   pacl->acl_nace));
 
 	result = gpfs2smb_acl(pacl);
-	if (result == NULL) {
-		goto done;
+	if (result != NULL) {
+		errno = 0;
 	}
 
  done:


-- 
Samba Shared Repository
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic