Changeset 773 for branches/samba-3.5.x/source3/smbd
- Timestamp:
- Jul 2, 2013, 7:27:06 PM (12 years ago)
- Location:
- branches/samba-3.5.x/source3/smbd
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/smbd/dosmode.c
r599 r773 374 374 return False; 375 375 } 376 DEBUG(10,("set_ea_dos_attributes: %d",sizeof(dosattrib))); 376 377 377 378 ZERO_STRUCT(dosattrib); -
branches/samba-3.5.x/source3/smbd/lanman.c
r414 r773 850 850 char *p = skip_string(param,tpscnt,str2); 851 851 char *QueueName = p; 852 fstring share_name; 852 853 unsigned int uLevel; 853 854 int count=0; … … 900 901 } 901 902 902 snum = find_service(QueueName );903 snum = find_service(QueueName, share_name); 903 904 if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) ) 904 905 return False; … … 1930 1931 int uLevel = get_safe_SVAL(param,tpscnt,p,0,-1); 1931 1932 int snum; 1933 fstring share_name; 1932 1934 1933 1935 if (!str1 || !str2 || !netname || !p) { … … 1935 1937 } 1936 1938 1937 snum = find_service(netname );1939 snum = find_service(netname, share_name); 1938 1940 if (snum < 0) { 1939 1941 return False; … … 2127 2129 } 2128 2130 pull_ascii_fstring(sharename,data); 2129 snum = find_service(sharename );2131 snum = find_service(sharename, sharename); 2130 2132 if (snum >= 0) { /* already exists */ 2131 2133 res = ERRfilexists; … … 4185 4187 print_queue_struct *queue=NULL; 4186 4188 print_status_struct status; 4189 fstring share_name; 4187 4190 4188 4191 if (!str1 || !str2 || !p) { … … 4214 4217 } 4215 4218 4216 snum = find_service(name );4219 snum = find_service(name, share_name); 4217 4220 if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) ) { 4218 4221 return False; … … 4335 4338 char *p = skip_string(param,tpscnt,str2); 4336 4339 char* PrinterName = p; 4340 fstring share_name; 4337 4341 int uLevel; 4338 4342 struct pack_desc desc; … … 4362 4366 } 4363 4367 4364 snum = find_service(PrinterName );4368 snum = find_service(PrinterName, share_name); 4365 4369 if ( !(lp_snum_ok(snum) && lp_print_ok(snum)) ) { 4366 4370 *rdata_len = 0; -
branches/samba-3.5.x/source3/smbd/msdfs.c
r732 r773 823 823 if(snum < 0) { 824 824 fstring service_name; 825 fstrcpy(service_name, jucn->service_name); 826 if ((snum = find_service(service_name)) < 0) { 825 if ((snum = find_service(jucn->service_name, service_name)) < 0) { 827 826 return NT_STATUS_NOT_FOUND; 828 827 } -
branches/samba-3.5.x/source3/smbd/posix_acls.c
r739 r773 1360 1360 if (pace->type == SMB_ACL_USER_OBJ) { 1361 1361 1362 if (setting_acl && !is_default_acl) { 1362 if (setting_acl) { 1363 /* 1364 * Ensure we have default parameters for the 1365 * user (owner) even on default ACLs. 1366 */ 1363 1367 apply_default_perms(params, is_directory, pace, S_IRUSR); 1364 1368 } … … 1440 1444 } 1441 1445 1442 if (!is_default_acl) { 1443 apply_default_perms(params, is_directory, pace, S_IRUSR); 1444 } 1446 /* 1447 * Ensure we have default parameters for the 1448 * user (owner) even on default ACLs. 1449 */ 1450 apply_default_perms(params, is_directory, pace, S_IRUSR); 1445 1451 } else { 1446 1452 pace->perms = unix_perms_to_acl_perms(pst->st_ex_mode, S_IRUSR, S_IWUSR, S_IXUSR); -
branches/samba-3.5.x/source3/smbd/service.c
r736 r773 306 306 * Find a service entry. 307 307 * 308 * @param service is modified (to canonical form??) 308 * @param service_in is modified (to canonical form??) 309 * and returned in return parameter service. 309 310 **/ 310 311 311 int find_service( fstring service)312 int find_service(const char *service_in, fstring service) 312 313 { 313 314 int iService; 314 315 struct smbd_server_connection *sconn = smbd_server_conn; 315 316 317 if (!service_in) { 318 return -1; 319 } 320 321 fstrcpy(service, service_in); 316 322 all_string_sub(service,"\\","/",0); 317 323 … … 400 406 } 401 407 402 iService = find_service(defservice );408 iService = find_service(defservice, service); 403 409 if (iService >= 0) { 404 410 all_string_sub(service, "_","/",0); … … 1183 1189 current_user_info.smb_name); 1184 1190 map_username(sconn, unix_username); 1185 snum = find_service(unix_username );1191 snum = find_service(unix_username, unix_username); 1186 1192 } 1187 1193 if (snum != -1) { … … 1211 1217 strlower_m(service); 1212 1218 1213 snum = find_service(service );1219 snum = find_service(service, service); 1214 1220 1215 1221 if (snum < 0) { -
branches/samba-3.5.x/source3/smbd/smb2_tcon.c
r414 r773 168 168 strlower_m(service); 169 169 170 snum = find_service(service );170 snum = find_service(service, service); 171 171 if (snum < 0) { 172 172 DEBUG(3,("smbd_smb2_tree_connect: couldn't find service %s\n",
Note:
See TracChangeset
for help on using the changeset viewer.