int retry; /* round, and round we go ... */
char *local_cell = NULL;
- static char confname[512] = { 0 };
krb5_creds *v5cred = NULL;
struct ktc_principal aserver;
struct ktc_principal aclient;
memset(realm_of_user, 0, sizeof(realm_of_user));
- if (confname[0] == '\0') {
- strncpy(confname, AFSDIR_CLIENT_ETC_DIRPATH, sizeof(confname));
- confname[sizeof(confname) - 2] = '\0';
- }
-
/* NULL or empty cell returns information on local cell */
if ((status = get_cellconfig(cell, &cellconf, &local_cell)))
return(status);
username, aserver.cell);
}
- if (!pr_Initialize (0, confname, aserver.cell))
- status = pr_SNameToId (username, &viceId);
+ if (!pr_Initialize (0, AFSDIR_CLIENT_ETC_DIRPATH, aserver.cell))
+ status = pr_SNameToId (username, &viceId);
if (dflag) {
if (status)
* level
*/
- if ((status = pr_Initialize(1L, confname, aserver.cell))) {
+ if ((status = pr_Initialize(1L, AFSDIR_CLIENT_ETC_DIRPATH,
+ aserver.cell))) {
printf("Error %d\n", status);
}