Correctly detect an "add user script" - check that *lp_adduser_script() != '\0',
authorJeremy Allison <jra@samba.org>
Sat, 26 Jul 2003 01:21:06 +0000 (01:21 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 26 Jul 2003 01:21:06 +0000 (01:21 +0000)
not lp_adduser_script() != NULL.
Jeremy.
(This used to be commit 2eac65ebe7147b36a34e0ca1c3f455f559ab0361)

source3/auth/auth_util.c

index 3a95ae591d12271785987a74f3f897ba2b47f059..5403ee8c39a5999b0eb5d1084d441513bf59cb43 100644 (file)
@@ -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"));