summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index e5c078da29..42966b4f83 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -476,8 +476,8 @@ static int net_afskey(int argc, const char **argv)
int fd;
struct afs_keyfile keyfile;
- if (argc != 1) {
- d_printf("usage: 'net afskey <keyfile>'\n");
+ if (argc != 2) {
+ d_printf("usage: 'net afskey <keyfile> cell'\n");
return -1;
}
@@ -496,7 +496,7 @@ static int net_afskey(int argc, const char **argv)
return -1;
}
- if (!secrets_store_afs_keyfile(afs_cell(), &keyfile)) {
+ if (!secrets_store_afs_keyfile(argv[1], &keyfile)) {
d_printf("Could not write keyfile to secrets.tdb\n");
return -1;
}