Changeset 746 for vendor/current/source3/param
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/param/loadparm.c
r740 r746 380 380 bool bAsyncSMBEchoHandler; 381 381 bool bMulticastDnsRegister; 382 bool bAllowInsecureWidelinks; 382 383 int ismb2_max_read; 383 384 int ismb2_max_write; … … 4357 4358 }, 4358 4359 { 4360 .label = "allow insecure wide links", 4361 .type = P_BOOL, 4362 .p_class = P_GLOBAL, 4363 .ptr = &Globals.bAllowInsecureWidelinks, 4364 .special = NULL, 4365 .enum_list = NULL, 4366 .flags = FLAG_ADVANCED, 4367 }, 4368 { 4359 4369 .label = "wide links", 4360 4370 .type = P_BOOL, … … 5566 5576 5567 5577 FN_GLOBAL_STRING(lp_smb_ports, &Globals.smb_ports) 5568 FN_GLOBAL_ STRING(lp_dos_charset, &Globals.dos_charset)5569 FN_GLOBAL_ STRING(lp_unix_charset, &Globals.unix_charset)5570 FN_GLOBAL_ STRING(lp_display_charset, &Globals.display_charset)5578 FN_GLOBAL_CONST_STRING(lp_dos_charset, &Globals.dos_charset) 5579 FN_GLOBAL_CONST_STRING(lp_unix_charset, &Globals.unix_charset) 5580 FN_GLOBAL_CONST_STRING(lp_display_charset, &Globals.display_charset) 5571 5581 FN_GLOBAL_STRING(lp_logfile, &Globals.szLogFile) 5572 5582 FN_GLOBAL_STRING(lp_configfile, &Globals.szConfigFile) … … 5997 6007 FN_GLOBAL_BOOL(lp_async_smb_echo_handler, &Globals.bAsyncSMBEchoHandler) 5998 6008 FN_GLOBAL_BOOL(lp_multicast_dns_register, &Globals.bMulticastDnsRegister) 6009 FN_GLOBAL_BOOL(lp_allow_insecure_widelinks, &Globals.bAllowInsecureWidelinks) 5999 6010 FN_LOCAL_BOOL(lp_blocking_locks, bBlockingLocks) 6000 6011 FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms) … … 9637 9648 } 9638 9649 9639 lp_add_auto_services(lp_auto_services()); 9650 { 9651 char *serv = lp_auto_services(); 9652 lp_add_auto_services(serv); 9653 TALLOC_FREE(serv); 9654 } 9640 9655 9641 9656 if (add_ipc) { … … 10323 10338 void widelinks_warning(int snum) 10324 10339 { 10340 if (lp_allow_insecure_widelinks()) { 10341 return; 10342 } 10343 10325 10344 if (lp_unix_extensions() && lp_widelinks_internal(snum)) { 10326 10345 DEBUG(0,("Share '%s' has wide links and unix extensions enabled. " … … 10335 10354 /* wide links is always incompatible with unix extensions */ 10336 10355 if (lp_unix_extensions()) { 10337 return false; 10356 /* 10357 * Unless we have "allow insecure widelinks" 10358 * turned on. 10359 */ 10360 if (!lp_allow_insecure_widelinks()) { 10361 return false; 10362 } 10338 10363 } 10339 10364
Note:
See TracChangeset
for help on using the changeset viewer.