added a warning when loading a parameter that is deprecated
authorAndrew Tridgell <tridge@samba.org>
Wed, 26 Aug 1998 01:57:17 +0000 (01:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 26 Aug 1998 01:57:17 +0000 (01:57 +0000)
(This used to be commit c8b0041570a1fb0be0318f511c6ba746c733cda9)

source3/param/loadparm.c

index 60561870666454041bdbe18bc9543f13fe9b2fe1..f6c5769718719895adfc49b61dedf6565a7e7741 100644 (file)
@@ -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 */