mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
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.
This commit is contained in:
parent
005afc86e4
commit
6b9109466c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user