]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-windows-pipes-20080210
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 11 Feb 2008 00:18:32 +0000 (00:18 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 11 Feb 2008 00:18:32 +0000 (00:18 +0000)
LICENSE MIT

do not search for cellnames that match srvsvc or wkssvc pipes

(cherry picked from commit d7235b1493917250a163dc4336f8b6ac83c6a07e)

src/WINNT/afsd/cm_vnodeops.c

index b1ebd8f3c05e7af6dce65738036428436bf06379..f9c309f919445e32ca7af00b39cb9d3713a7e138 100644 (file)
@@ -1284,7 +1284,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;