Changeset 988 for vendor/current/source3/smbd/ntquotas.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/ntquotas.c
r740 r988 97 97 } 98 98 99 ret = SMB_VFS_GET_QUOTA(fsp->conn, qtype, id, &D);99 ret = SMB_VFS_GET_QUOTA(fsp->conn, ".", qtype, id, &D); 100 100 101 101 if (psid) … … 177 177 } 178 178 179 s ys_setpwent();180 while ((usr = sys_getpwent()) != NULL) {179 setpwent(); 180 while ((usr = getpwent()) != NULL) { 181 181 SMB_NTQUOTA_STRUCT tmp_qt; 182 182 SMB_NTQUOTA_LIST *tmp_list_ent; … … 202 202 sid_string_dbg(&sid), fsp->conn->connectpath)); 203 203 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) { 205 205 DEBUG(0,("TALLOC_ZERO() failed\n")); 206 206 *qt_list = NULL; … … 209 209 } 210 210 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) { 212 212 DEBUG(0,("TALLOC_ZERO() failed\n")); 213 213 *qt_list = NULL; … … 223 223 224 224 } 225 sys_endpwent();225 endpwent(); 226 226 227 227 return 0; … … 240 240 241 241 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); 245 245 if (qt_handle==NULL) { 246 246 DEBUG(0,("TALLOC_ZERO() failed\n"));
Note:
See TracChangeset
for help on using the changeset viewer.