(contains_dot_dot): Fix double-dot recognition in case of duplicate /. Patch by Dmitry V. Levin.

This commit is contained in:
Sergey Poznyakoff
2007-08-12 08:25:00 +00:00
parent 42250f5010
commit e2b8c8fa9f

View File

@@ -1012,11 +1012,10 @@ contains_dot_dot (char const *name)
if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
return 1;
do
while (! ISSLASH (*p))
{
if (! *p++)
return 0;
}
while (! ISSLASH (*p));
}
}