From 80317bbd208f96b3c21cd6766d96587a7021e5ee Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 14 Jan 2010 13:26:11 -0800 Subject: [PATCH] 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 --- lib/kadm5/password_quality.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kadm5/password_quality.c b/lib/kadm5/password_quality.c index 9e1229631..045cf4792 100644 --- a/lib/kadm5/password_quality.c +++ b/lib/kadm5/password_quality.c @@ -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);