Ignore:
Timestamp:
Jun 24, 2009, 10:34:52 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 to 3.2.13

Location:
branches/samba-3.2.x/source
Files:
4 edited

Legend:

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

    r272 r282  
    2626SAMBA_VERSION_MAJOR=3
    2727SAMBA_VERSION_MINOR=2
    28 SAMBA_VERSION_RELEASE=12
     28SAMBA_VERSION_RELEASE=13
    2929
    3030########################################################
  • branches/samba-3.2.x/source/client/client.c

    r232 r282  
    365365        /* Ensure cur_dir ends in a DIRSEP */
    366366        if ((new_cd[0] != '\0') && (*(new_cd+strlen(new_cd)-1) != CLI_DIRSEP_CHAR)) {
    367                 new_cd = talloc_asprintf_append(new_cd, CLI_DIRSEP_STR);
     367                new_cd = talloc_asprintf_append(new_cd, "%s", CLI_DIRSEP_STR);
    368368                if (!new_cd) {
    369369                        goto out;
     
    872872                        mask = talloc_strdup(ctx, buf);
    873873                } else {
    874                         mask = talloc_asprintf_append(mask, buf);
     874                        mask = talloc_asprintf_append(mask, "%s", buf);
    875875                }
    876876        } else {
     
    913913        }
    914914        if ((mask[0] != '\0') && (mask[strlen(mask)-1]!=CLI_DIRSEP_CHAR)) {
    915                 mask = talloc_asprintf_append(mask, CLI_DIRSEP_STR);
     915                mask = talloc_asprintf_append(mask, "%s", CLI_DIRSEP_STR);
    916916                if (!mask) {
    917917                        return 1;
     
    924924                        mask = talloc_strdup(ctx, buf);
    925925                } else {
    926                         mask = talloc_asprintf_append(mask, buf);
     926                        mask = talloc_asprintf_append(mask, "%s", buf);
    927927                }
    928928        } else {
     
    11081108                return 1;
    11091109        }
    1110         rname = talloc_asprintf_append(rname, fname);
     1110        rname = talloc_asprintf_append(rname, "%s", fname);
    11111111        if (!rname) {
    11121112                return 1;
     
    12671267                return 1;
    12681268        }
    1269         rname = talloc_asprintf_append(rname, fname);
     1269        rname = talloc_asprintf_append(rname, "%s", fname);
    12701270        if (!rname) {
    12711271                return 1;
     
    13191319                } else {
    13201320                        mget_mask = talloc_asprintf_append(mget_mask,
    1321                                                         buf);
     1321                                                        "%s", buf);
    13221322                }
    13231323                if (!mget_mask) {
     
    14201420                return 1;
    14211421        }
    1422         mask = talloc_asprintf_append(mask, buf);
     1422        mask = talloc_asprintf_append(mask, "%s", buf);
    14231423        if (!mask) {
    14241424                return 1;
     
    14491449                p = strtok_r(ddir, "/\\", &saveptr);
    14501450                while (p) {
    1451                         ddir2 = talloc_asprintf_append(ddir2, p);
     1451                        ddir2 = talloc_asprintf_append(ddir2, "%s", p);
    14521452                        if (!ddir2) {
    14531453                                return 1;
     
    14561456                                do_mkdir(ddir2);
    14571457                        }
    1458                         ddir2 = talloc_asprintf_append(ddir2, CLI_DIRSEP_STR);
     1458                        ddir2 = talloc_asprintf_append(ddir2, "%s", CLI_DIRSEP_STR);
    14591459                        if (!ddir2) {
    14601460                                return 1;
     
    14881488                return 1;
    14891489        }
    1490         name = talloc_asprintf_append(name, buf);
     1490        name = talloc_asprintf_append(name, "%s", buf);
    14911491        if (!name) {
    14921492                return 1;
     
    15721572                return 1;
    15731573        }
    1574         name = talloc_asprintf_append(name, buf);
     1574        name = talloc_asprintf_append(name, "%s", buf);
    15751575        if (!name) {
    15761576                return 1;
     
    17391739
    17401740        if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) {
    1741                 rname = talloc_asprintf_append(rname, buf);
     1741                rname = talloc_asprintf_append(rname, "%s", buf);
    17421742        } else {
    1743                 rname = talloc_asprintf_append(rname, lname);
     1743                rname = talloc_asprintf_append(rname, "%s", lname);
    17441744        }
    17451745        if (!rname) {
     
    21382138                return 1;
    21392139        }
    2140         mask = talloc_asprintf_append(mask, buf);
     2140        mask = talloc_asprintf_append(mask, "%s", buf);
    21412141        if (!mask) {
    21422142                return 1;
     
    35303530                return 1;
    35313531        }
    3532         remote_name = talloc_asprintf_append(remote_name, fname);
     3532        remote_name = talloc_asprintf_append(remote_name, "%s", fname);
    35333533        if (!remote_name) {
    35343534                return 1;
     
    35773577        if (next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
    35783578                remote_name = talloc_asprintf_append(remote_name,
    3579                                                 buf);
     3579                                                "%s", buf);
    35803580        } else {
    35813581                remote_name = talloc_asprintf_append(remote_name,
    3582                                                 local_name);
     3582                                                "%s", local_name);
    35833583        }
    35843584        if (!remote_name) {
     
    41134113                                return;
    41144114                        }
    4115                         tmp = talloc_asprintf_append(tmp, f->name);
     4115                        tmp = talloc_asprintf_append(tmp, "%s", f->name);
    41164116                        if (!tmp) {
    41174117                                TALLOC_FREE(ctx);
     
    41194119                        }
    41204120                        if (f->mode & aDIR) {
    4121                                 tmp = talloc_asprintf_append(tmp, CLI_DIRSEP_STR);
     4121                                tmp = talloc_asprintf_append(tmp, "%s", CLI_DIRSEP_STR);
    41224122                        }
    41234123                        if (!tmp) {
  • branches/samba-3.2.x/source/include/version.h

    r272 r282  
    22#define SAMBA_VERSION_MAJOR 3
    33#define SAMBA_VERSION_MINOR 2
    4 #define SAMBA_VERSION_RELEASE 12
    5 #define SAMBA_VERSION_OFFICIAL_STRING "3.2.12"
     4#define SAMBA_VERSION_RELEASE 13
     5#define SAMBA_VERSION_OFFICIAL_STRING "3.2.13"
    66#define SAMBA_VERSION_STRING samba_version_string()
  • branches/samba-3.2.x/source/smbd/posix_acls.c

    r272 r282  
    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
     
    36283626                        become_root();
    36293627                }
    3630                 ret = set_canon_ace_list(fsp, file_ace_list, False, sbuf.st_gid, &acl_set_support);
     3628                ret = set_canon_ace_list(fsp, file_ace_list, False, &sbuf, &acl_set_support);
    36313629                if (set_acl_as_root) {
    36323630                        unbecome_root();
     
    36453643                                become_root();
    36463644                        }
    3647                         ret = set_canon_ace_list(fsp, dir_ace_list, True, sbuf.st_gid, &acl_set_support);
     3645                        ret = set_canon_ace_list(fsp, dir_ace_list, True, &sbuf, &acl_set_support);
    36483646                        if (set_acl_as_root) {
    36493647                                unbecome_root();
     
    36703668                        }
    36713669                        if (sret == -1) {
    3672                                 if (acl_group_override(conn, sbuf.st_gid, fsp->fsp_name)) {
     3670                                if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
    36733671                                        DEBUG(5,("set_nt_acl: acl group control on and "
    36743672                                                "current user in file %s primary group. Override delete_def_acl\n",
     
    37303728                        }
    37313729                        if(sret == -1) {
    3732                                 if (acl_group_override(conn, sbuf.st_gid, fsp->fsp_name)) {
     3730                                if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
    37333731                                        DEBUG(5,("set_nt_acl: acl group control on and "
    37343732                                                "current user in file %s primary group. Override chmod\n",
Note: See TracChangeset for help on using the changeset viewer.