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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user