Don't incorrectly change permissions on link target in SetPermissionsOfLink in unix fs code. Just don't do anything for changes targetting links. b=457487 r=smichaud sr=dougt

This commit is contained in:
Josh Aas 2008-10-07 21:26:41 -04:00
parent afcf19b8de
commit 05e8caa7d0

View File

@ -1086,7 +1086,9 @@ nsLocalFile::SetPermissions(PRUint32 aPermissions)
NS_IMETHODIMP
nsLocalFile::SetPermissionsOfLink(PRUint32 aPermissions)
{
return SetPermissions(aPermissions);
// There isn't a consistent mechanism for doing this on UNIX platforms. We
// might want to carefully implement this in the future though.
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP