diff options
author | Simo Sorce <idra@samba.org> | 2010-02-11 16:12:29 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-02-11 16:27:17 -0500 |
commit | 5d92d969dda450cc3564dd2265d2b042d832c542 (patch) | |
tree | a7e62129dce16e8b9509db7ac3d85566ca38a2ac /source3/param/loadparm.c | |
parent | 94865e4dbd3d721c9855aada8c55e02be8b3881e (diff) | |
download | samba-5d92d969dda450cc3564dd2265d2b042d832c542.tar.gz samba-5d92d969dda450cc3564dd2265d2b042d832c542.tar.xz samba-5d92d969dda450cc3564dd2265d2b042d832c542.zip |
Introduce lp_safe_widelinks()
This way we avoid any chance that a configuration reload may turn
back on wide links when unix extensions are enabled.
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8308e99566..4b6fa83b04 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -9891,3 +9891,19 @@ void lp_set_passdb_backend(const char *backend) { string_set(&Globals.szPassdbBackend, backend); } + +/******************************************************************* + Safe wide links checks. + This helper function always verify the validity of wide links, + even after a configuration file reload. +********************************************************************/ + +bool lp_safe_widelinks(int snum) +{ + /* wide links is always incompatible with unix extensions */ + if (lp_unix_extensions()) { + return false; + } + + return lp_widelinks(snum); +} |