22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
$OpenBSD: patch-toolkit_components_downloads_nsDownloadManager_cpp,v 1.3 2012/02/20 20:21:43 landry Exp $
|
|
--- toolkit/components/downloads/nsDownloadManager.cpp.orig Wed Jan 11 18:15:03 2012
|
|
+++ toolkit/components/downloads/nsDownloadManager.cpp Sat Jan 14 20:24:15 2012
|
|
@@ -1164,7 +1164,7 @@ nsDownloadManager::GetDefaultDownloadsDirectory(nsILoc
|
|
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);
|
|
}
|
|
}
|
|
@@ -1272,7 +1272,7 @@ nsDownloadManager::GetUserDownloadsDirectory(nsILocalF
|
|
(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;
|