From d9f4d53dda779dfbb6ee0e5e32c3714f46ca03d0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 27 Mar 2010 19:13:28 +1100 Subject: [PATCH] s4:heimdal Use correct variable to advance past -- options in kpasswd This bug was introduced when kpasswd was migrated to a local getarg() call, in Heimdal commit 7dd146072cd9b56d660a01f4aa20f8d81be356e8 Andrew Bartlett Signed-off-by: Love Hornquist Astrand --- kpasswd/kpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpasswd/kpasswd.c b/kpasswd/kpasswd.c index 57c989719..0258c1ac0 100644 --- a/kpasswd/kpasswd.c +++ b/kpasswd/kpasswd.c @@ -132,8 +132,8 @@ main (int argc, char **argv) print_version(NULL); return 0; } - argc -= optind; - argv += optind; + argc -= optidx; + argv += optidx; ret = krb5_init_context (&context); if (ret)