diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-25 16:36:44 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-26 11:57:08 -0600 |
commit | 533cc583ed20efdfd6bee60f86d16fef3942898b (patch) | |
tree | b89f9b0988d38e9995a71ff8d14ea023cc37783a /source4/param | |
parent | cea31e32163fe639be72b3f4dfca1362c93b5576 (diff) | |
download | samba-533cc583ed20efdfd6bee60f86d16fef3942898b.tar.gz samba-533cc583ed20efdfd6bee60f86d16fef3942898b.tar.bz2 samba-533cc583ed20efdfd6bee60f86d16fef3942898b.zip |
r26596: Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df62240cae64d27a1920d878316f819fc)
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/param.i | 2 | ||||
-rw-r--r-- | source4/param/param_wrap.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/param/param.i b/source4/param/param.i index 375c3d0da4..353fa3ced6 100644 --- a/source4/param/param.i +++ b/source4/param/param.i @@ -59,6 +59,8 @@ typedef struct loadparm_context { bool is_myname(const char *name) { return lp_is_myname($self, name); } int use(struct param_context *param_ctx) { return param_use($self, param_ctx); } bool set(const char *parm_name, const char *parm_value) { + if (parm_value == NULL) + return false; return lp_set_cmdline($self, parm_name, parm_value); } diff --git a/source4/param/param_wrap.c b/source4/param/param_wrap.c index 5f7ff880ff..ca9fbb77b8 100644 --- a/source4/param/param_wrap.c +++ b/source4/param/param_wrap.c @@ -2643,6 +2643,8 @@ SWIGINTERN bool loadparm_context_is_mydomain(loadparm_context *self,char const * SWIGINTERN bool loadparm_context_is_myname(loadparm_context *self,char const *name){ return lp_is_myname(self, name); } SWIGINTERN int loadparm_context_use(loadparm_context *self,struct param_context *param_ctx){ return param_use(self, param_ctx); } SWIGINTERN bool loadparm_context_set(loadparm_context *self,char const *parm_name,char const *parm_value){ + if (parm_value == NULL) + return false; return lp_set_cmdline(self, parm_name, parm_value); } SWIGINTERN PyObject *loadparm_context_get(loadparm_context *self,char const *param_name,char const *service_name){ |