Fix for 85986. If we find a shortcut and we are not resolving it, it is ok to

return we found it. r=dougt, sr=mscott, a=drivers
This commit is contained in:
syd%netscape.com 2001-06-19 03:17:20 +00:00
Родитель 07694ef07a
Коммит b31fd3c52e
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -545,7 +545,9 @@ nsLocalFile::ResolveAndStat(PRBool resolveTerminal)
int pathLen = strlen(workingFilePath);
const char* leaf = workingFilePath + pathLen - 4;
if (pathLen < 4 || (strcmp(leaf, ".lnk") != 0))
// if we found the file and we are not following symlinks, then return success.
if (!mFollowSymlinks || pathLen < 4 || (strcmp(leaf, ".lnk") != 0))
{
mDirty = PR_FALSE;
return NS_OK;
@ -1163,7 +1165,7 @@ nsLocalFile::Delete(PRBool recursive)
return rv;
const char *filePath = mResolvedPath.get();
if (isDir)
{
if (recursive)