From 64cae8e20ec8756a4c8503466a8754cecf417aa6 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 5 Oct 2007 20:34:30 +0000 Subject: Fix the keytab attribute handling to call getattr and setattr instead of just attr to match the actual API. --- client/keytab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/keytab.c') diff --git a/client/keytab.c b/client/keytab.c index 51b3889..02533f8 100644 --- a/client/keytab.c +++ b/client/keytab.c @@ -30,7 +30,7 @@ set_sync(struct remctl *r, const char *type, const char *name) int status; command[0] = type; - command[1] = "attr"; + command[1] = "getattr"; command[2] = "keytab"; command[3] = name; command[4] = "sync"; @@ -39,6 +39,7 @@ set_sync(struct remctl *r, const char *type, const char *name) if (status != 0) return 0; if (data == NULL || strstr(data, "kaserver\n") == NULL) { + command[1] = "setattr"; command[5] = "kaserver"; command[6] = NULL; status = run_command(r, command, NULL, NULL); -- cgit v1.2.3