Pass external password quality program name as first argument

Pass the path to the external password quality program as the first
argument to the program and the principal as the second argument, as is
conventional, rather than passing only the principal.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Russ Allbery
2010-01-14 13:26:11 -08:00
committed by Love Hornquist Astrand
parent 1f4bb75eef
commit 80317bbd20

View File

@@ -170,7 +170,7 @@ external_passwd_quality (krb5_context context,
return 1;
}
child = pipe_execv(&in, &out, &error, program, p, NULL);
child = pipe_execv(&in, &out, &error, program, program, p, NULL);
if (child < 0) {
snprintf(message, length, "external password quality "
"program failed to execute for principal %s", p);