X-Git-Url: https://git.hcoop.net/hcoop/debian/libnss-afs.git/blobdiff_plain/9fee930b244befc76ab68376dd89103b76d7ca76..2cc65a8059135b7e19f908a46a3ab680747887d0:/nss_afs.c diff --git a/nss_afs.c b/nss_afs.c index ebd527a..10d8a08 100644 --- a/nss_afs.c +++ b/nss_afs.c @@ -62,6 +62,7 @@ #include #include #include +#include #include #define HOMEDIR_AUTO 0 @@ -92,6 +93,8 @@ int homedir_prefix_len=0; char homedirs_method=0; char shells_method=0; +int init_afs (); + /** * The cpstr() function copies a null-terminated string from str* * (the first argument) into buf and updates both buf and buflen. If @@ -129,7 +132,7 @@ enum nss_status ptsid2name(int uid, char **buffer, size_t *buflen) { lnames.namelist_val = 0; lnames.namelist_len = 0; - if (ubik_Call(PR_IDToName,pruclient,0,&lid,&lnames) != PRSUCCESS) { + if (ubik_PR_IDToName(pruclient,0,&lid,&lnames) != PRSUCCESS) { perror("ubik_Call() in ptsid2name() failed\n"); pthread_mutex_unlock(&mutex); return NSS_STATUS_UNAVAIL; @@ -177,7 +180,7 @@ enum nss_status ptsname2id(char *name, uid_t* uid) { strncpy(uname, name, MAXUSERNAMELEN); lnames.namelist_len = 1; - if (ubik_Call(PR_NameToID,pruclient,0,&lnames,&lid) != PRSUCCESS) { + if (ubik_PR_NameToID(pruclient,0,&lnames,&lid) != PRSUCCESS) { perror("ubik_Call() in ptsname2id() failed\n"); pthread_mutex_unlock(&mutex); return NSS_STATUS_UNAVAIL;