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;
}
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;
}