r3683: BUG 2017: fix testparm reporting for the passwd program string
authorGerald Carter <jerry@samba.org>
Thu, 11 Nov 2004 18:11:40 +0000 (18:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:14 +0000 (10:53 -0500)
source/utils/testparm.c

index d4dc22ec915651c3c8ea12aaf7cfd335edf6c49f..e13140783111e2aeac59e8e47cc82318d4d0b922 100644 (file)
@@ -145,7 +145,7 @@ parameter.\n");
                        ret = 1;
                } else 
                /* check if there's a %u parameter present */
-               if(strstr_m(lp_passwd_chat(), "%u") == NULL) {
+               if(strstr_m(lp_passwd_program(), "%u") == NULL) {
                        fprintf(stderr, "ERROR: the 'passwd program' (%s) requires a '%%u' parameter.\n", lp_passwd_program());
                        ret = 1;
                }