mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-viced-no-nulluuid-20070719
a host with a zero uuid has no uuid support (cherry picked from commit 91fee8a699e31ad825e84a4f2bd56eb9093ea85a)
This commit is contained in:
parent
09561f7af7
commit
8478a18334
@ -75,6 +75,7 @@ extern struct afsconf_dir *confDir; /* config dir object */
|
||||
extern int lwps; /* the max number of server threads */
|
||||
extern afsUUID FS_HostUUID;
|
||||
|
||||
afsUUID nulluuid;
|
||||
int CEs = 0; /* active clients */
|
||||
int CEBlocks = 0; /* number of blocks of CEs */
|
||||
struct client *CEFree = 0; /* first free client */
|
||||
@ -1330,7 +1331,8 @@ h_GetHost_r(struct rx_connection *tcon)
|
||||
rx_PutConnection(cb_conn);
|
||||
cb_conn=NULL;
|
||||
H_LOCK;
|
||||
if (code == RXGEN_OPCODE) {
|
||||
if ((code == RXGEN_OPCODE) ||
|
||||
(afs_uuid_equal(&interf.uuid, &nulluuid))) {
|
||||
identP = (struct Identity *)malloc(sizeof(struct Identity));
|
||||
if (!identP) {
|
||||
ViceLog(0, ("Failed malloc in h_GetHost_r\n"));
|
||||
@ -1453,7 +1455,8 @@ h_GetHost_r(struct rx_connection *tcon)
|
||||
rx_PutConnection(cb_conn);
|
||||
cb_conn=NULL;
|
||||
H_LOCK;
|
||||
if (code == RXGEN_OPCODE) {
|
||||
if ((code == RXGEN_OPCODE) ||
|
||||
afs_uuid_equal(&interf.uuid, &nulluuid)) {
|
||||
if (!identP)
|
||||
identP =
|
||||
(struct Identity *)malloc(sizeof(struct Identity));
|
||||
@ -1663,6 +1666,7 @@ char local_realm[AFS_REALM_SZ] = "";
|
||||
void
|
||||
h_InitHostPackage()
|
||||
{
|
||||
memset(&nulluuid, 0, sizeof(afsUUID));
|
||||
afsconf_GetLocalCell(confDir, localcellname, PR_MAXNAMELEN);
|
||||
if (!local_realm[0]) {
|
||||
if (afs_krb_get_lrealm(local_realm, 0) != 0 /*KSUCCESS*/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user