* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
This commit is contained in:
parent
2a606041a1
commit
9420d2b833
|
@ -1,3 +1,7 @@
|
||||||
|
2002-03-06 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
|
||||||
|
|
||||||
2002-03-05 Christopher Faylor <cgf@redhat.com>
|
2002-03-05 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* errno.cc: Change EPERM associated text to "Operation not permitted"
|
* errno.cc: Change EPERM associated text to "Operation not permitted"
|
||||||
|
|
|
@ -249,7 +249,11 @@ normalize_posix_path (const char *src, char *dst)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (src[2] && !isslash (src[2]))
|
else if (src[2] && !isslash (src[2]))
|
||||||
break;
|
{
|
||||||
|
if (src[2] == '.')
|
||||||
|
return ENOENT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (dst > dst_start && !isslash (*--dst))
|
while (dst > dst_start && !isslash (*--dst))
|
||||||
|
|
Loading…
Reference in New Issue