Ignore:
Timestamp:
Mar 1, 2010, 3:05:48 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3.x to 3.3.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/param/loadparm.c

    r407 r411  
    590590        False,                  /* bOnlyUser */
    591591        True,                   /* bMangledNames */
    592 #ifndef __OS2__
    593         /* Future default in newer Samba versions */
    594         True,                   /* bWidelinks */
    595 #else
    596592        False,                  /* bWidelinks */
    597 #endif
    598593        True,                   /* bSymlinks */
    599594        False,                  /* bSyncAlways */
     
    53625357FN_LOCAL_BOOL(lp_onlyuser, bOnlyUser)
    53635358FN_LOCAL_PARM_BOOL(lp_manglednames, bMangledNames)
    5364 FN_LOCAL_BOOL(lp_widelinks, bWidelinks)
    53655359FN_LOCAL_BOOL(lp_symlinks, bSymlinks)
    53665360FN_LOCAL_BOOL(lp_syncalways, bSyncAlways)
     
    96109604        return  Globals.szSocketAddress;
    96119605}
     9606
     9607/*******************************************************************
     9608 Safe wide links checks.
     9609 This helper function always verify the validity of wide links,
     9610 even after a configuration file reload.
     9611********************************************************************/
     9612
     9613static bool lp_widelinks_internal(int snum)
     9614{
     9615        return (bool)(LP_SNUM_OK(snum)? ServicePtrs[(snum)]->bWidelinks :
     9616                        sDefault.bWidelinks);
     9617}
     9618
     9619void widelinks_warning(int snum)
     9620{
     9621        if (lp_unix_extensions() && lp_widelinks_internal(snum)) {
     9622                DEBUG(0,("Share '%s' has wide links and unix extensions enabled. "
     9623                        "These parameters are incompatible. "
     9624                        "Wide links will be disabled for this share.\n",
     9625                        lp_servicename(snum) ));
     9626        }
     9627}
     9628
     9629bool lp_widelinks(int snum)
     9630{
     9631        /* wide links is always incompatible with unix extensions */
     9632        if (lp_unix_extensions()) {
     9633                return false;
     9634        }
     9635
     9636        return lp_widelinks_internal(snum);
     9637}
Note: See TracChangeset for help on using the changeset viewer.