From: Kurt Zeilenga Date: Tue, 9 Sep 2003 17:17:21 +0000 (+0000) Subject: ITS#2696: X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~742 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b9109466ce0dfab9b970d8430ed93e74a43be61;p=openldap ITS#2696: ldappasswd -T and -t options don't work, they try to open the file ldappasswd instead of the argument passed. Applied patch provided by Nicolas Schodet. --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index a8c7f98cd1..52d2cf6f11 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -166,7 +166,7 @@ main( int argc, char *argv[] ) } if( oldpwfile ) { - rc = lutil_get_filed_password( prog, &oldpw ); + rc = lutil_get_filed_password( oldpwfile, &oldpw ); if( rc ) return EXIT_FAILURE; } @@ -187,7 +187,7 @@ main( int argc, char *argv[] ) } if( newpwfile ) { - rc = lutil_get_filed_password( prog, &newpw ); + rc = lutil_get_filed_password( newpwfile, &newpw ); if( rc ) return EXIT_FAILURE; }