Lines Matching defs:cell
61 { "cell", 'c', arg_strings, &cells, "cells to get tokens for", "cell" },
63 { "realm", 'k', arg_string, &realm, "realm for afs cell", "realm" },
83 expand_one_file(FILE *f, const char *cell)
93 if(strncmp(buf + 1, cell, strlen(cell)) == 0)
102 expand_cell_name(const char *cell)
115 c = expand_one_file(f, cell);
120 return cell;
126 arg_printusage(args, num_args, NULL, "[cell|path]...");
131 char *cell;
136 afslog_cell(const char *cell, int expand)
139 const char *c = cell;
141 c = expand_cell_name(cell);
143 warnx("No cell matching \"%s\" found.", cell);
146 if(verbose && strcmp(c, cell) != 0)
147 warnx("Cell \"%s\" expanded to \"%s\"", cell, c);
152 if(strcmp(p->cell, c) == 0)
157 p->cell = strdup(c);
158 if(p->cell == NULL) {
170 char cell[64];
171 if(k_afs_cell_of_file(path, cell, sizeof(cell))){
172 warnx("No cell found for file \"%s\".", path);
176 warnx("File \"%s\" lives in cell \"%s\"", path, cell);
177 return afslog_cell(cell, 0);
181 do_afslog(const char *cell)
189 k5ret = krb5_afslog(context, id, cell, realm);
194 if (cell == NULL)
195 cell = "<default cell>";
198 krb5_warn(context, k5ret, "krb5_afslog(%s)", cell);
296 warnx("Getting tokens for cell \"%s\"", p->cell);
297 if(do_afslog(p->cell))