5ef6c2a34e
now generated at build time (it turns out to be possible to do that non-interactively, after all). * Fixed creation of the bookmarks file (and other stuff) when creating a new profile. When a new profile is created, it's copied from a default profile which is part of the Firefox installation. However, since the default profile directory is in the Nix store, it's read-only. Firefox keeps the read-only permission when copying the profile, so creating files in it (such as adding the bookmarks file) fails. The `writable-copies' patch is a quick hack that adds write permission when copying files/directories. svn path=/nixpkgs/trunk/; revision=1542
23 lines
942 B
Diff
23 lines
942 B
Diff
diff -rc mozilla-orig/xpcom/io/nsLocalFileUnix.cpp mozilla/xpcom/io/nsLocalFileUnix.cpp
|
|
*** mozilla-orig/xpcom/io/nsLocalFileUnix.cpp 2004-04-03 01:48:18.000000000 +0200
|
|
--- mozilla/xpcom/io/nsLocalFileUnix.cpp 2004-10-05 19:48:04.000000000 +0200
|
|
***************
|
|
*** 634,639 ****
|
|
--- 634,640 ----
|
|
// get the dirs old permissions
|
|
if (NS_FAILED(rv = GetPermissions(&oldPerms)))
|
|
return rv;
|
|
+ oldPerms |= 0200;
|
|
if (NS_FAILED(rv = newParent->Create(DIRECTORY_TYPE, oldPerms)))
|
|
return rv;
|
|
} else { // dir exists lets try to use leaf
|
|
***************
|
|
*** 758,763 ****
|
|
--- 759,765 ----
|
|
// get the old permissions
|
|
PRUint32 myPerms;
|
|
GetPermissions(&myPerms);
|
|
+ myPerms |= 0200;
|
|
|
|
// Create the new file with the old file's permissions, even if write
|
|
// permission is missing. We can't create with write permission and
|