HCoop
/
hcoop
/
debian
/
libnss-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 2.04
[hcoop/debian/libnss-afs.git]
/
nss_afs.c
diff --git
a/nss_afs.c
b/nss_afs.c
index
ebd527a
..
10d8a08
100644
(file)
--- a/
nss_afs.c
+++ b/
nss_afs.c
@@
-62,6
+62,7
@@
#include <afs/param.h>
#include <afs/ptclient.h>
#include <afs/pterror.h>
#include <afs/param.h>
#include <afs/ptclient.h>
#include <afs/pterror.h>
+#include <afs/ptuser.h>
#include <afs/stds.h>
#define HOMEDIR_AUTO 0
#include <afs/stds.h>
#define HOMEDIR_AUTO 0
@@
-92,6
+93,8
@@
int homedir_prefix_len=0;
char homedirs_method=0;
char shells_method=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
/**
* 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;
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;
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;
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;
perror("ubik_Call() in ptsname2id() failed\n");
pthread_mutex_unlock(&mutex);
return NSS_STATUS_UNAVAIL;