From 6b9109466ce0dfab9b970d8430ed93e74a43be61 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 9 Sep 2003 17:17:21 +0000 Subject: [PATCH] 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. --- clients/tools/ldappasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5