Changeset 411 for branches/samba-3.3.x/source/param/loadparm.c
- Timestamp:
- Mar 1, 2010, 3:05:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/param/loadparm.c
r407 r411 590 590 False, /* bOnlyUser */ 591 591 True, /* bMangledNames */ 592 #ifndef __OS2__593 /* Future default in newer Samba versions */594 True, /* bWidelinks */595 #else596 592 False, /* bWidelinks */ 597 #endif598 593 True, /* bSymlinks */ 599 594 False, /* bSyncAlways */ … … 5362 5357 FN_LOCAL_BOOL(lp_onlyuser, bOnlyUser) 5363 5358 FN_LOCAL_PARM_BOOL(lp_manglednames, bMangledNames) 5364 FN_LOCAL_BOOL(lp_widelinks, bWidelinks)5365 5359 FN_LOCAL_BOOL(lp_symlinks, bSymlinks) 5366 5360 FN_LOCAL_BOOL(lp_syncalways, bSyncAlways) … … 9610 9604 return Globals.szSocketAddress; 9611 9605 } 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 9613 static bool lp_widelinks_internal(int snum) 9614 { 9615 return (bool)(LP_SNUM_OK(snum)? ServicePtrs[(snum)]->bWidelinks : 9616 sDefault.bWidelinks); 9617 } 9618 9619 void 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 9629 bool 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.