Fix for nsIFile GetTarget method.

r=dougt sr=jst b=88032

--pete


git-svn-id: svn://10.0.0.236/trunk@98292 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pete%alphanumerica.com
2001-06-29 17:43:59 +00:00
parent 7ab978668d
commit 62c2417381

View File

@@ -1229,8 +1229,9 @@ nsLocalFile::GetTarget(char **_retval)
CHECK_mPath();
NS_ENSURE_ARG_POINTER(_retval);
VALIDATE_STAT_CACHE();
if (!S_ISLNK(mCachedStat.st_mode))
struct stat symStat;
lstat(mPath, &symStat);
if (!S_ISLNK(symStat.st_mode))
return NS_ERROR_FILE_INVALID_PATH;
PRInt64 targetSize64;