Lines Matching defs:cell
67 { "cell", 'c', arg_strings, &cells, "cells to get tokens for", "cell" },
69 { "realm", 'k', arg_string, &realm, "realm for afs cell", "realm" },
92 expand_one_file(FILE *f, const char *cell)
102 if(strncmp(buf + 1, cell, strlen(cell)) == 0)
111 expand_cell_name(const char *cell)
124 c = expand_one_file(f, cell);
129 return cell;
135 arg_printusage(args, num_args, NULL, "[cell|path]...");
140 char *cell;
145 afslog_cell(const char *cell, int expand)
148 const char *c = cell;
150 c = expand_cell_name(cell);
152 warnx("No cell matching \"%s\" found.", cell);
155 if(verbose && strcmp(c, cell) != 0)
156 warnx("Cell \"%s\" expanded to \"%s\"", cell, c);
161 if(strcmp(p->cell, c) == 0)
166 p->cell = strdup(c);
167 if(p->cell == NULL) {
179 char cell[64];
180 if(k_afs_cell_of_file(path, cell, sizeof(cell))){
181 warnx("No cell found for file \"%s\".", path);
185 warnx("File \"%s\" lives in cell \"%s\"", path, cell);
186 return afslog_cell(cell, 0);
190 do_afslog(const char *cell)
198 k5ret = krb5_afslog(context, id, cell, realm);
205 k4ret = krb_afslog(cell, realm);
210 if (cell == NULL)
211 cell = "<default cell>";
214 warnx("krb5_afslog(%s): %s", cell, krb5_get_err_text(context, k5ret));
218 warnx("krb_afslog(%s): %s", cell, krb_get_err_text(k4ret));
316 warnx("Getting tokens for cell \"%s\"", p->cell);
317 if(do_afslog(p->cell))