Fix for broken nsIFile method IsSymlink
b=81927 r=blizzard sr=jst --pete git-svn-id: svn://10.0.0.236/trunk@98178 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
579c851925
commit
5491b3db14
@ -1159,8 +1159,11 @@ NS_IMETHODIMP
|
||||
nsLocalFile::IsSymlink(PRBool *_retval)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(_retval);
|
||||
VALIDATE_STAT_CACHE();
|
||||
*_retval = S_ISLNK(mCachedStat.st_mode);
|
||||
CHECK_mPath();
|
||||
|
||||
struct stat symStat;
|
||||
lstat(mPath, &symStat);
|
||||
*_retval=S_ISLNK(symStat.st_mode);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user