openbsd-ports/www/mozilla-firefox/patches/patch-toolkit_components_downloads_nsDownloadManager_cpp
landry 433f3c4b5e Update to mozilla-firefox 5.0:
That's the first release following the new fast scheme of one major
release every 6 weeks..
Check out http://www.mozilla.com/en-US/firefox/5.0/releasenotes/ for
release notes. Note that it's still badly broken on sparc64, and
unlikely to be fixed soon... you still have www/firefox36.

Tested by (at least, probably forgetting some..) rpointel@, pea@,
ckuethe@ and myself on amd64, bluhm@ on i386 and ajacoutot@ on macppc
(thanks!)
ok rpointel@
2011-06-28 05:43:57 +00:00

22 lines
1.0 KiB
Plaintext

$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
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);
}
}
@@ -1278,7 +1278,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;