Commit 37114d0d by Richard Stallman

*** empty log message ***

From-SVN: r331
parent 6d716ca8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment