windows-get-cellinfo-afsdb-20070702
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Jul 2007 01:33:47 +0000 (01:33 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Jul 2007 01:33:47 +0000 (01:33 +0000)
enable afsdb records for get cellinfo lookup outside of afsd_service.exe

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

do not perform afsdb lookup for Freelance.Local.Root cell

src/WINNT/afsd/cm_dns.c
src/WINNT/afsd/fs.c
src/WINNT/afsd/symlink.c
src/auth/NTMakefile
src/auth/cellconfig.c

index 6c09e05..5cf72ad 100644 (file)
@@ -686,6 +686,11 @@ int getAFSServer(char *cellName, int *cellHostAddrs, char cellHostNames[][MAXHOS
     struct sockaddr_in vlSockAddr;
     char query[1024];
 
+#ifdef AFS_FREELANCE_CLIENT
+    if ( stricmp(cellName, "Freelance.Local.Root") == 0 )
+        return -1;
+#endif /* AFS_FREELANCE_CLIENT */
+
     *numServers = 0; 
     *ttl = 0;
 
index fafeacd..960d0b9 100644 (file)
@@ -271,7 +271,7 @@ IsFreelanceRoot(char *apath)
 
     code = pioctl(apath, VIOC_FILE_CELL_NAME, &blob, 1);
     if (code == 0)
-        return !strcmp("Freelance.Local.Root",space);
+        return !stricmp("Freelance.Local.Root",space);
     return 1;   /* assume it is because it is more restrictive that way */
 }
 
index b27d747..ebe6ca2 100644 (file)
@@ -88,7 +88,7 @@ IsFreelanceRoot(char *apath)
 
     code = pioctl(apath, VIOC_FILE_CELL_NAME, &blob, 1);
     if (code == 0)
-        return !strcmp("Freelance.Local.Root",space);
+        return !stricmp("Freelance.Local.Root",space);
     return 1;   /* assume it is because it is more restrictive that way */
 }
 
index 624a977..71893b8 100644 (file)
@@ -8,6 +8,7 @@
 RELDIR=auth
 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
 !INCLUDE ..\config\NTMakefile.version
+AFSDEV_AUXCDEFINES = -DAFS_AFSDB_ENV
 
 INCFILEDIR = $(DESTDIR)\include\afs  # header file install directory
 
index c8635ce..7398c03 100644 (file)
@@ -532,7 +532,7 @@ afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
     char tbuffer[256], tbuf1[256];
     struct stat tstat;
 
-    /* figure out the cell name */
+    /* figure out the local cell name */
 #ifdef AFS_NT40_ENV
     i = GetCellNT(adir);
 #else