From: Jeffrey Altman Date: Wed, 13 Feb 2008 05:46:27 +0000 (+0000) Subject: DEVEL15-windows-dfs-referrals-20080212 X-Git-Tag: openafs-devel-1_5_32~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2124e5bedfb20dcc7b9a4eaa2796f1f72d06ad83;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-dfs-referrals-20080212 LICENSE MIT Add "ipc$" to the list of names that must not be automatically added as a share name. If the sharename is a partial match and therefore will not be added automatically to the share list, make sure that we return an error to the requestor. (cherry picked from commit 44c20384ed5c0fdb4bce737a2a3c2b9c0af4472b) --- diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index 3f274b0b0..a787b875f 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -1284,8 +1284,9 @@ 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, '%') && - strcmp(namep, "srvsvc") && strcmp(namep, "wkssvc")) { + else if (!strchr(namep, '#') && !strchr(namep, '%') && + strcmp(namep, "srvsvc") && strcmp(namep, "wkssvc") && + strcmp(namep, "ipc$")) { /* nonexistent dir on freelance root, so add it */ char fullname[200] = "."; int found = 0; @@ -1300,6 +1301,7 @@ long cm_LookupInternal(cm_scache_t *dscp, char *namep, long flags, cm_user_t *us * new value automatically. */ + code = -1; if (namep[0] == '.') { if (cm_GetCell_Gen(&namep[1], &fullname[1], CM_FLAG_CREATE)) { found = 1;