]> git.sur5r.net Git - openldap/commitdiff
ITS#2696:
authorKurt Zeilenga <kurt@openldap.org>
Tue, 9 Sep 2003 17:17:21 +0000 (17:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 9 Sep 2003 17:17:21 +0000 (17:17 +0000)
  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

index a8c7f98cd1bef2d0532c30c3f1e583838389c87d..52d2cf6f11a07a438d2aec1e14cdc1ecf8d12605 100644 (file)
@@ -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;
        }