windows-windows-pipes-20080210
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 11 Feb 2008 00:13:50 +0000 (00:13 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 11 Feb 2008 00:13:50 +0000 (00:13 +0000)
LICENSE MIT

do not search for cellnames that match srvsvc or wkssvc pipes

src/WINNT/afsd/cm_vnodeops.c

index 8a2ee00..690be84 100644 (file)
@@ -1282,7 +1282,8 @@ long cm_LookupInternal(cm_scache_t *dscp, char *namep, long flags, cm_user_t *us
             else
                 return CM_ERROR_NOSUCHFILE;
         }
-               else if (!strchr(namep, '#') && !strchr(namep, '%')) { 
+               else if (!strchr(namep, '#') && !strchr(namep, '%') &&
+                         strcmp(namep, "srvsvc") && strcmp(namep, "wkssvc")) { 
             /* nonexistent dir on freelance root, so add it */
             char fullname[200] = ".";
             int  found = 0;