*** empty log message ***

From-SVN: r331
This commit is contained in:
Richard Stallman 1992-02-16 08:08:39 +00:00
parent 6d716ca834
commit 37114d0dbc
1 changed files with 12 additions and 1 deletions

View File

@ -955,7 +955,18 @@ directory_specified_p (name)
for (p = directory_list; p; p = p->next)
if (!strncmp (name, p->name, strlen (p->name))
&& name[strlen (p->name)] == '/')
return 1;
{
const char *q = name + strlen (p->name) + 1;
/* If there are more slashes, it's in a subdir, so
this match doesn't count. */
while (*q)
if (*q++ == '/')
goto lose;
return 1;
lose: ;
}
return 0;
}