summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-26 01:21:06 +0000
committerJeremy Allison <jra@samba.org>2003-07-26 01:21:06 +0000
commit0c4358889e53187a6b839c8a66a5333df5580769 (patch)
tree3cbbf08bba7f93ab033ba1511ffee0ce3fe9db11
parent559439e1f4d3ba3444213cbf64a1ede5f9d51906 (diff)
downloadsamba-0c4358889e53187a6b839c8a66a5333df5580769.tar.gz
samba-0c4358889e53187a6b839c8a66a5333df5580769.tar.bz2
samba-0c4358889e53187a6b839c8a66a5333df5580769.zip
Correctly detect an "add user script" - check that *lp_adduser_script() != '\0',
not lp_adduser_script() != NULL. Jeremy. (This used to be commit 2eac65ebe7147b36a34e0ca1c3f455f559ab0361)
-rw-r--r--source3/auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 3a95ae591d..5403ee8c39 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -68,7 +68,7 @@ void auth_add_user_script(const char *domain, const char *username)
* user on the fly, do so.
*/
- if ( lp_adduser_script() )
+ if ( *lp_adduser_script() )
smb_create_user(domain, username, NULL);
else {
DEBUG(10,("auth_add_user_script: no 'add user script'. Asking winbindd\n"));