mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
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.
This commit is contained in:
parent
31990decde
commit
44c20384ed
@ -1282,8 +1282,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;
|
||||
@ -1298,6 +1299,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;
|
||||
|
Loading…
Reference in New Issue
Block a user