Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/ntquotas.c

    r740 r988  
    9797        }
    9898
    99         ret = SMB_VFS_GET_QUOTA(fsp->conn, qtype, id, &D);
     99        ret = SMB_VFS_GET_QUOTA(fsp->conn, ".", qtype, id, &D);
    100100
    101101        if (psid)
     
    177177        }
    178178
    179         sys_setpwent();
    180         while ((usr = sys_getpwent()) != NULL) {
     179        setpwent();
     180        while ((usr = getpwent()) != NULL) {
    181181                SMB_NTQUOTA_STRUCT tmp_qt;
    182182                SMB_NTQUOTA_LIST *tmp_list_ent;
     
    202202                          sid_string_dbg(&sid), fsp->conn->connectpath));
    203203
    204                 if ((tmp_list_ent=TALLOC_ZERO_P(mem_ctx,SMB_NTQUOTA_LIST))==NULL) {
     204                if ((tmp_list_ent=talloc_zero(mem_ctx,SMB_NTQUOTA_LIST))==NULL) {
    205205                        DEBUG(0,("TALLOC_ZERO() failed\n"));
    206206                        *qt_list = NULL;
     
    209209                }
    210210
    211                 if ((tmp_list_ent->quotas=TALLOC_ZERO_P(mem_ctx,SMB_NTQUOTA_STRUCT))==NULL) {
     211                if ((tmp_list_ent->quotas=talloc_zero(mem_ctx,SMB_NTQUOTA_STRUCT))==NULL) {
    212212                        DEBUG(0,("TALLOC_ZERO() failed\n"));
    213213                        *qt_list = NULL;
     
    223223               
    224224        }
    225         sys_endpwent();
     225        endpwent();
    226226
    227227        return 0;
     
    240240
    241241        if (!mem_ctx)
    242                 return False;
    243 
    244         qt_handle = TALLOC_ZERO_P(mem_ctx,SMB_NTQUOTA_HANDLE);
     242                return NULL;
     243
     244        qt_handle = talloc_zero(mem_ctx,SMB_NTQUOTA_HANDLE);
    245245        if (qt_handle==NULL) {
    246246                DEBUG(0,("TALLOC_ZERO() failed\n"));
Note: See TracChangeset for help on using the changeset viewer.