1651 |
p += 2; |
p += 2; |
1652 |
} |
} |
1653 |
else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.' |
else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.' |
1654 |
/* `/../' is the "superroot" on certain file systems. */ |
/* `/../' is the "superroot" on certain file systems. |
1655 |
|
Turned off on DOS_NT systems because they have no |
1656 |
|
"superroot" and because this causes us to produce |
1657 |
|
file names like "d:/../foo" which fail file-related |
1658 |
|
functions of the underlying OS. (To reproduce, try a |
1659 |
|
long series of "../../" in default_directory, longer |
1660 |
|
than the number of levels from the root.) */ |
1661 |
|
#ifndef DOS_NT |
1662 |
&& o != target |
&& o != target |
1663 |
|
#endif |
1664 |
&& (IS_DIRECTORY_SEP (p[3]) || p[3] == 0)) |
&& (IS_DIRECTORY_SEP (p[3]) || p[3] == 0)) |
1665 |
{ |
{ |
1666 |
while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) |
while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) |