aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-05 20:34:30 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-05 20:34:30 +0000
commit64cae8e20ec8756a4c8503466a8754cecf417aa6 (patch)
tree4f34a6f19df1974e2a223e55a67d20707e316557 /client
parentdbd33500b645f9caaa6dbb7d18a3f4932b53847a (diff)
Fix the keytab attribute handling to call getattr and setattr instead of
just attr to match the actual API.
Diffstat (limited to 'client')
-rw-r--r--client/keytab.c3
1 files changed, 2 insertions, 1 deletions
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);