opr: Define opr_mutex_t in lockstub.h
[openafs.git] / src / auth / writeconfig.c
index 715d8a8..c538433 100644 (file)
@@ -45,6 +45,8 @@ VerifyEntries(struct afsconf_cell *aci)
 
                code = getaddrinfo(aci->hostName[i], NULL, &hints, &result);
                if (code) {
+                   printf("Host %s not found in host database...\n",
+                          aci->hostName[i]);
                    return AFSCONF_FAILURE;
                }
                for (rp = result; rp != NULL; rp = rp->ai_next) {
@@ -56,6 +58,8 @@ VerifyEntries(struct afsconf_cell *aci)
                }
                freeaddrinfo(result);
                if (aci->hostAddr[i].sin_addr.s_addr == 0) {
+                   printf("No non-loopback addresses found for host %s\n",
+                          aci->hostName[i]);
                    return AFSCONF_FAILURE;
                }
            }
@@ -136,8 +140,7 @@ afsconf_SetExtendedCellInfo(struct afsconf_dir *adir,
     }
 
     /* write CellServDB */
-    strcompose(tbuffer, 1024, apath, "/", AFSDIR_CELLSERVDB_FILE, (char *)NULL);
-    tf = fopen(tbuffer, "w");
+    tf = fopen(adir->cellservDB, "w");
     if (!tf) {
        UNLOCK_GLOBAL_MUTEX;
        return AFSCONF_NOTFOUND;