Ignore:
Timestamp:
Nov 12, 2012, 7:10:02 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.18

Location:
branches/samba-3.5.x/source3/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/lib/ldb/common/ldb_parse.c

    r414 r738  
    9393}
    9494
     95static bool need_encode(unsigned char cval)
     96{
     97        if (cval < 0x20 || cval > 0x7E || strchr(" *()\\&|!\"", cval)) {
     98                return true;
     99        }
     100        return false;
     101}
    95102
    96103/*
     
    106113
    107114        for (i=0;i<val.length;i++) {
    108                 if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
     115                if (need_encode(buf[i])) {
    109116                        len += 2;
    110117                }
     
    115122        len = 0;
    116123        for (i=0;i<val.length;i++) {
    117                 if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
     124                if (need_encode(buf[i])) {
    118125                        snprintf(ret+len, 4, "\\%02X", buf[i]);
    119126                        len += 3;
  • branches/samba-3.5.x/source3/lib/sysquotas_xfs.c

    r414 r738  
    3636#ifdef HAVE_LINUX_DQBLK_XFS_H
    3737#include <linux/dqblk_xfs.h>
     38#ifndef XFS_QUOTA_UDQ_ACCT
     39#define XFS_QUOTA_UDQ_ACCT FS_QUOTA_UDQ_ACCT
     40#endif
     41#ifndef XFS_QUOTA_UDQ_ENFD
     42#define XFS_QUOTA_UDQ_ENFD FS_QUOTA_UDQ_ENFD
     43#endif
     44#ifndef XFS_QUOTA_GDQ_ACCT
     45#define XFS_QUOTA_GDQ_ACCT FS_QUOTA_GDQ_ACCT
     46#endif
     47#ifndef XFS_QUOTA_GDQ_ENFD
     48#define XFS_QUOTA_GDQ_ENFD FS_QUOTA_GDQ_ENFD
     49#endif
    3850#endif
    3951#define HAVE_GROUP_QUOTA
  • branches/samba-3.5.x/source3/lib/util_sid.c

    r583 r738  
    685685                              DOM_SID **user_sids,
    686686                              size_t *num_user_sids,
    687                               bool include_user_group_rid,
    688                               bool skip_ressource_groups)
     687                              bool include_user_group_rid)
    689688{
    690689        NTSTATUS status;
     
    739738        }
    740739
    741         /* Copy 'other' sids.  We need to do sid filtering here to
    742            prevent possible elevation of privileges.  See:
    743 
    744            http://www.microsoft.com/windows2000/techinfo/administration/security/sidfilter.asp
    745          */
     740        /* SID filtering should only be handled by the domain controller on a
     741           trust by trust basis, and is counter-indicated for forests. Since
     742           native AD return all Domain Local groups as other SIDs, then this
     743           must not filter them when parsing INFO3 responses such that the
     744           list is identical to the tokenGroups LDAP query.
     745         */
    746746
    747747        for (i = 0; i < info3->sidcount; i++) {
    748 
    749                 if (skip_ressource_groups &&
    750                     (info3->sids[i].attributes & SE_GROUP_RESOURCE)) {
    751                         continue;
    752                 }
    753 
    754748                status = add_sid_to_array(mem_ctx, info3->sids[i].sid,
    755749                                      &sid_array, &num_sids);
Note: See TracChangeset for help on using the changeset viewer.