deps/unrar/extinfo.cpp
// Check if all existing path components are directories and not links.
Check if all existing path components are directories and not links.
Check if all existing path components are directories and not links .
static bool LinkInPath(const wchar *Name)
{
  wchar Path[NM];
  if (wcslen(Name)>=ASIZE(Path))
    return true;  
  wcsncpyz(Path,Name,ASIZE(Path));
  for (wchar *s=Path+wcslen(Path)-1;s>Path;s--)
    if (IsPathDiv(*s))
    {
      *s=0;
      FindData FD;
      if (FindFile::FastFind(Path,&FD,true) && (FD.IsLink || !FD.IsDir))
        return true;
    }
  return false;
}
static bool LinkInPath ( const wchar * Name ) { wchar Path [ NM ] ; if ( wcslen ( Name ) >= ASIZE ( Path ) ) return true ; wcsncpyz ( Path , Name , ASIZE ( Path ) ) ; for ( wchar * s = Path + wcslen ( Path ) - 1 ; s > Path ; s -- ) if ( IsPathDiv ( * s ) ) { * s = 0 ; FindData FD ; if ( FindFile :: FastFind ( Path , & FD , true ) && ( FD . IsLink || ! FD . IsDir ) ) return true ; } return false ; }
Check if all existing path components are directories and not links.
Check if all existing path components are directories and not links .
// It should not be that long, skip.