[PATCH 14/37] param: avoid the use of lp_do_parameter in popt

abartlet at samba.org abartlet at samba.org
Fri Jun 20 05:47:36 MDT 2014


From: Garming Sam <garming at catalyst.net.nz>

lp_do_parameter ideally should not be used outside of loadparm

Change-Id: I310f1a0ff81867151accbda551751bafcdfd8c4d
Signed-off-by: Garming Sam <garming at catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet at samba.org>
---
 source3/lib/popt_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c
index be13004..df0465d 100644
--- a/source3/lib/popt_common.c
+++ b/source3/lib/popt_common.c
@@ -128,7 +128,7 @@ static void popt_common_callback(poptContext con,
 
 	case 'O':
 		if (arg) {
-			lp_do_parameter(-1, "socket options", arg);
+			lp_set_cmdline("socket options", arg);
 		}
 		break;
 
-- 
1.9.3



More information about the samba-technical mailing list