dots for being a run of only dots. Let it pass if not.
+2003-10-25 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (normalize_posix_path): Test runs of more than two
+ dots for being a run of only dots. Let it pass if not.
+
2003-10-25 Brian Ford <ford@vss.fsi.com>
* fhandler.cc (fhandler_base::ioctl): Handle FIONBIO.
else if (src[2] && !isslash (src[2]))
{
if (src[2] == '.')
- return ENOENT;
+ {
+ /* Is this a run of dots? That would be an invalid
+ filename. A bunch of leading dots would be ok,
+ though. */
+ int n = strspn (src, ".");
+ if (!src[n] || isslash (src[n])) /* just dots... */
+ return ENOENT;
+ }
break;
}
else