2012-04-30 15:28:42 +00:00
|
|
|
$OpenBSD: patch-toolkit_components_downloads_nsDownloadManager_cpp,v 1.4 2012/04/30 15:28:42 landry Exp $
|
|
|
|
--- toolkit/components/downloads/nsDownloadManager.cpp.orig Wed Apr 11 15:55:20 2012
|
|
|
|
+++ toolkit/components/downloads/nsDownloadManager.cpp Wed Apr 18 22:09:16 2012
|
|
|
|
@@ -1165,7 +1165,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);
|
|
|
|
}
|
|
|
|
}
|
2012-04-30 15:28:42 +00:00
|
|
|
@@ -1273,7 +1273,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;
|