Ignore:
Timestamp:
Jun 24, 2009, 2:54:02 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 branch to 3.3.6

Location:
branches/samba-3.3.x/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/VERSION

    r274 r285  
    2626SAMBA_VERSION_MAJOR=3
    2727SAMBA_VERSION_MINOR=3
    28 SAMBA_VERSION_RELEASE=5
     28SAMBA_VERSION_RELEASE=6
    2929
    3030########################################################
  • branches/samba-3.3.x/source/include/version.h

    r274 r285  
    22#define SAMBA_VERSION_MAJOR 3
    33#define SAMBA_VERSION_MINOR 3
    4 #define SAMBA_VERSION_RELEASE 5
    5 #define SAMBA_VERSION_OFFICIAL_STRING "3.3.5"
     4#define SAMBA_VERSION_RELEASE 6
     5#define SAMBA_VERSION_OFFICIAL_STRING "3.3.6"
    66#define SAMBA_VERSION_STRING samba_version_string()
  • branches/samba-3.3.x/source/smbd/posix_acls.c

    r274 r285  
    23852385
    23862386static bool acl_group_override(connection_struct *conn,
    2387                                 gid_t prim_gid,
     2387                                SMB_STRUCT_STAT *psbuf,
    23882388                                const char *fname)
    23892389{
    2390         SMB_STRUCT_STAT sbuf;
    2391 
    23922390        if ((errno != EPERM) && (errno != EACCES)) {
    23932391                return false;
     
    23962394        /* file primary group == user primary or supplementary group */
    23972395        if (lp_acl_group_control(SNUM(conn)) &&
    2398                         current_user_in_group(prim_gid)) {
     2396                        current_user_in_group(psbuf->st_gid)) {
    23992397                return true;
    24002398        }
     
    24022400        /* user has writeable permission */
    24032401        if (lp_dos_filemode(SNUM(conn)) &&
    2404                         can_write_to_file(conn, fname, &sbuf)) {
     2402                        can_write_to_file(conn, fname, psbuf)) {
    24052403                return true;
    24062404        }
     
    24132411****************************************************************************/
    24142412
    2415 static bool set_canon_ace_list(files_struct *fsp, canon_ace *the_ace, bool default_ace, gid_t prim_gid, bool *pacl_set_support)
     2413static bool set_canon_ace_list(files_struct *fsp, canon_ace *the_ace, bool default_ace, SMB_STRUCT_STAT *psbuf, bool *pacl_set_support)
    24162414{
    24172415        connection_struct *conn = fsp->conn;
     
    25922590                        }
    25932591
    2594                         if (acl_group_override(conn, prim_gid, fsp->fsp_name)) {
     2592                        if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
    25952593                                int sret;
    25962594
     
    26232621                        }
    26242622
    2625                         if (acl_group_override(conn, prim_gid, fsp->fsp_name)) {
     2623                        if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
    26262624                                int sret;
    26272625
     
    36193617                        become_root();
    36203618                }
    3621                 ret = set_canon_ace_list(fsp, file_ace_list, False, sbuf.st_gid, &acl_set_support);
     3619                ret = set_canon_ace_list(fsp, file_ace_list, False, &sbuf, &acl_set_support);
    36223620                if (set_acl_as_root) {
    36233621                        unbecome_root();
     
    36363634                                become_root();
    36373635                        }
    3638                         ret = set_canon_ace_list(fsp, dir_ace_list, True, sbuf.st_gid, &acl_set_support);
     3636                        ret = set_canon_ace_list(fsp, dir_ace_list, True, &sbuf, &acl_set_support);
    36393637                        if (set_acl_as_root) {
    36403638                                unbecome_root();
     
    36613659                        }
    36623660                        if (sret == -1) {
    3663                                 if (acl_group_override(conn, sbuf.st_gid, fsp->fsp_name)) {
     3661                                if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
    36643662                                        DEBUG(5,("set_nt_acl: acl group control on and "
    36653663                                                "current user in file %s primary group. Override delete_def_acl\n",
     
    37213719                        }
    37223720                        if(sret == -1) {
    3723                                 if (acl_group_override(conn, sbuf.st_gid, fsp->fsp_name)) {
     3721                                if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
    37243722                                        DEBUG(5,("set_nt_acl: acl group control on and "
    37253723                                                "current user in file %s primary group. Override chmod\n",
Note: See TracChangeset for help on using the changeset viewer.