diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-26 01:57:17 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-26 01:57:17 +0000 |
commit | 7bc68de378168bcc9891642ef58f645a5fb11bf2 (patch) | |
tree | 49c073c1532c74410a3b5716a2e1c08f879f7f2e /source3/param/loadparm.c | |
parent | 93e016e3d5992388bfc2c43a10f7171bb13156a0 (diff) | |
download | samba-7bc68de378168bcc9891642ef58f645a5fb11bf2.tar.gz samba-7bc68de378168bcc9891642ef58f645a5fb11bf2.tar.bz2 samba-7bc68de378168bcc9891642ef58f645a5fb11bf2.zip |
added a warning when loading a parameter that is deprecated
(This used to be commit c8b0041570a1fb0be0318f511c6ba746c733cda9)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 6056187066..f6c5769718 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1878,6 +1878,11 @@ BOOL lp_do_parameter(int snum, char *pszParmName, char *pszParmValue) return(True); } + if (parm_table[parmnum].flags & FLAG_DEPRECATED) { + DEBUG(1,("WARNING: The \"%s\"option is deprecated\n", + pszParmName)); + } + def_ptr = parm_table[parmnum].ptr; /* we might point at a service, the default service or a global */ |