2011-06-28 05:43:57 +00:00
|
|
|
$OpenBSD: patch-toolkit_components_downloads_nsDownloadManager_cpp,v 1.1 2011/06/28 05:43:57 landry Exp $
|
|
|
|
--- toolkit/components/downloads/nsDownloadManager.cpp.orig Fri May 27 18:12:45 2011
|
|
|
|
+++ toolkit/components/downloads/nsDownloadManager.cpp Tue May 31 22:21:34 2011
|
|
|
|
@@ -1170,7 +1170,7 @@ nsDownloadManager::GetDefaultDownloadsDirectory(nsILoc
|
2010-04-26 19:55:58 +00:00
|
|
|
rv = downloadDir->Exists(&exists);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
if (!exists) {
|
|
|
|
- rv = downloadDir->Create(nsIFile::DIRECTORY_TYPE, 0755);
|
|
|
|
+ rv = downloadDir->Create(nsIFile::DIRECTORY_TYPE, 0700);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
}
|
|
|
|
}
|
2011-06-28 05:43:57 +00:00
|
|
|
@@ -1278,7 +1278,7 @@ nsDownloadManager::GetUserDownloadsDirectory(nsILocalF
|
2010-04-26 19:55:58 +00:00
|
|
|
(void)customDirectory->Exists(&exists);
|
|
|
|
|
|
|
|
if (!exists) {
|
|
|
|
- rv = customDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755);
|
|
|
|
+ rv = customDirectory->Create(nsIFile::DIRECTORY_TYPE, 0700);
|
|
|
|
if (NS_SUCCEEDED(rv)) {
|
|
|
|
customDirectory.forget(aResult);
|
|
|
|
return NS_OK;
|