Changeset 751 for trunk/server/source3/param/loadparm.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/param/loadparm.c
r745 r751 384 384 bool bAsyncSMBEchoHandler; 385 385 bool bMulticastDnsRegister; 386 bool bAllowInsecureWidelinks; 386 387 int ismb2_max_read; 387 388 int ismb2_max_write; … … 4361 4362 }, 4362 4363 { 4364 .label = "allow insecure wide links", 4365 .type = P_BOOL, 4366 .p_class = P_GLOBAL, 4367 .ptr = &Globals.bAllowInsecureWidelinks, 4368 .special = NULL, 4369 .enum_list = NULL, 4370 .flags = FLAG_ADVANCED, 4371 }, 4372 { 4363 4373 .label = "wide links", 4364 4374 .type = P_BOOL, … … 5610 5620 5611 5621 FN_GLOBAL_STRING(lp_smb_ports, &Globals.smb_ports) 5612 FN_GLOBAL_ STRING(lp_dos_charset, &Globals.dos_charset)5613 FN_GLOBAL_ STRING(lp_unix_charset, &Globals.unix_charset)5614 FN_GLOBAL_ STRING(lp_display_charset, &Globals.display_charset)5622 FN_GLOBAL_CONST_STRING(lp_dos_charset, &Globals.dos_charset) 5623 FN_GLOBAL_CONST_STRING(lp_unix_charset, &Globals.unix_charset) 5624 FN_GLOBAL_CONST_STRING(lp_display_charset, &Globals.display_charset) 5615 5625 FN_GLOBAL_STRING(lp_logfile, &Globals.szLogFile) 5616 5626 FN_GLOBAL_STRING(lp_configfile, &Globals.szConfigFile) … … 6041 6051 FN_GLOBAL_BOOL(lp_async_smb_echo_handler, &Globals.bAsyncSMBEchoHandler) 6042 6052 FN_GLOBAL_BOOL(lp_multicast_dns_register, &Globals.bMulticastDnsRegister) 6053 FN_GLOBAL_BOOL(lp_allow_insecure_widelinks, &Globals.bAllowInsecureWidelinks) 6043 6054 FN_LOCAL_BOOL(lp_blocking_locks, bBlockingLocks) 6044 6055 FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms) … … 9681 9692 } 9682 9693 9683 lp_add_auto_services(lp_auto_services()); 9694 { 9695 char *serv = lp_auto_services(); 9696 lp_add_auto_services(serv); 9697 TALLOC_FREE(serv); 9698 } 9684 9699 9685 9700 if (add_ipc) { … … 10381 10396 void widelinks_warning(int snum) 10382 10397 { 10398 if (lp_allow_insecure_widelinks()) { 10399 return; 10400 } 10401 10383 10402 if (lp_unix_extensions() && lp_widelinks_internal(snum)) { 10384 10403 DEBUG(0,("Share '%s' has wide links and unix extensions enabled. " … … 10393 10412 /* wide links is always incompatible with unix extensions */ 10394 10413 if (lp_unix_extensions()) { 10395 return false; 10414 /* 10415 * Unless we have "allow insecure widelinks" 10416 * turned on. 10417 */ 10418 if (!lp_allow_insecure_widelinks()) { 10419 return false; 10420 } 10396 10421 } 10397 10422
Note:
See TracChangeset
for help on using the changeset viewer.