From: Mike Hommey <mh@glandium.org>
Date: Mon, 11 Jan 2010 11:09:46 +0100
Subject: Avoid creating /usr/lib/mozilla/extensions 0700 when running as root

https://bugzilla.mozilla.org/show_bug.cgi?id=538929
Closes: #559926
---
 toolkit/xre/nsXREDirProvider.cpp |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp
index fd9411f..7e37582 100644
--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -1155,9 +1155,6 @@ nsXREDirProvider::GetSystemExtensionsDirectory(nsILocalFile** aFile)
   NS_ENSURE_SUCCESS(rv, rv);
 #endif
 
-  rv = EnsureDirectoryExists(localDir);
-  NS_ENSURE_SUCCESS(rv, rv);
-
   NS_ADDREF(*aFile = localDir);
   return NS_OK;
 }
