Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/param/loadparm.c

    r745 r751  
    384384        bool bAsyncSMBEchoHandler;
    385385        bool bMulticastDnsRegister;
     386        bool bAllowInsecureWidelinks;
    386387        int ismb2_max_read;
    387388        int ismb2_max_write;
     
    43614362        },
    43624363        {
     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        {
    43634373                .label          = "wide links",
    43644374                .type           = P_BOOL,
     
    56105620
    56115621FN_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)
     5622FN_GLOBAL_CONST_STRING(lp_dos_charset, &Globals.dos_charset)
     5623FN_GLOBAL_CONST_STRING(lp_unix_charset, &Globals.unix_charset)
     5624FN_GLOBAL_CONST_STRING(lp_display_charset, &Globals.display_charset)
    56155625FN_GLOBAL_STRING(lp_logfile, &Globals.szLogFile)
    56165626FN_GLOBAL_STRING(lp_configfile, &Globals.szConfigFile)
     
    60416051FN_GLOBAL_BOOL(lp_async_smb_echo_handler, &Globals.bAsyncSMBEchoHandler)
    60426052FN_GLOBAL_BOOL(lp_multicast_dns_register, &Globals.bMulticastDnsRegister)
     6053FN_GLOBAL_BOOL(lp_allow_insecure_widelinks, &Globals.bAllowInsecureWidelinks)
    60436054FN_LOCAL_BOOL(lp_blocking_locks, bBlockingLocks)
    60446055FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms)
     
    96819692        }
    96829693
    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        }
    96849699
    96859700        if (add_ipc) {
     
    1038110396void widelinks_warning(int snum)
    1038210397{
     10398        if (lp_allow_insecure_widelinks()) {
     10399                return;
     10400        }
     10401
    1038310402        if (lp_unix_extensions() && lp_widelinks_internal(snum)) {
    1038410403                DEBUG(0,("Share '%s' has wide links and unix extensions enabled. "
     
    1039310412        /* wide links is always incompatible with unix extensions */
    1039410413        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                }
    1039610421        }
    1039710422
Note: See TracChangeset for help on using the changeset viewer.