X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2FWINNT%2Faklog%2Faklog.c;h=efce84c29e9313da08ed7929d8879fbe49db4366;hp=a226d3a1567a5577c93df27d1f0377ea1314c03a;hb=c4b1decf6caacb13db666f516ceaf9b65e4371ab;hpb=3d15cfc3ca8fb159e8b4a22717a3d53421e3c88a diff --git a/src/WINNT/aklog/aklog.c b/src/WINNT/aklog/aklog.c index a226d3a..efce84c 100644 --- a/src/WINNT/aklog/aklog.c +++ b/src/WINNT/aklog/aklog.c @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef WIN32 #include @@ -182,7 +183,6 @@ void ViceIDToUsername(char *username, char *realm_of_user, char *realm_of_cell, { static char lastcell[MAXCELLCHARS+1] = { 0 }; static char confname[512] = { 0 }; - char username_copy[BUFSIZ]; long viceId; /* AFS uid of user */ #ifdef ALLOW_REGISTER afs_int32 id; @@ -196,6 +196,7 @@ void ViceIDToUsername(char *username, char *realm_of_user, char *realm_of_cell, if (dflag) printf("About to resolve name %s to id\n", username); +#ifdef COMMENT /* * Talk about DUMB! It turns out that there is a bug in * pr_Initialize -- even if you give a different cell name @@ -215,6 +216,7 @@ void ViceIDToUsername(char *username, char *realm_of_user, char *realm_of_cell, confname[i + 1] = '\0'; } } +#endif strcpy(lastcell, aserver->cell); @@ -280,7 +282,7 @@ void ViceIDToUsername(char *username, char *realm_of_user, char *realm_of_cell, * level */ - if ((*status = pr_Initialize(1L, confname, aserver->cell, 0))) { + if ((*status = pr_Initialize(1L, confname, aserver->cell))) { printf("Error %d\n", status); return; }