mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-04 11:13:45 +02:00
[backfire] merge r20885
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@20886 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4916211814
commit
a12f7611f4
@ -420,8 +420,9 @@ static char * canonpath(const char *path, char *path_resolved)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* collapse /x/../ */
|
/* collapse /x/../ */
|
||||||
else if( path_cpy[2] == '.' )
|
else if( (path_cpy[2] == '.') &&
|
||||||
{
|
((path_cpy[3] == '/') || (path_cpy[3] == '\0'))
|
||||||
|
) {
|
||||||
while( (path_res > path_resolved) && (*--path_res != '/') )
|
while( (path_res > path_resolved) && (*--path_res != '/') )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user